diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-12 22:04:13 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-12 22:04:13 +0200 |
commit | b8a42ff53b1fbb6e03d169d14e58180a750f4cad (patch) | |
tree | 72920e1ca49d1520045c5df847abe227f70b2a2a /ice40/archdefs.h | |
parent | ad60ab2ef164678cdde4410906cea674d122bf13 (diff) | |
download | nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.gz nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.bz2 nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.zip |
Updates from clang-format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r-- | ice40/archdefs.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h index 62c248c7..3252dabf 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -111,7 +111,8 @@ struct PipId struct GroupId { - enum : int8_t { + enum : int8_t + { TYPE_NONE, TYPE_FRAME, TYPE_MAIN_SW, @@ -133,7 +134,8 @@ struct GroupId struct DecalId { - enum : int8_t { + enum : int8_t + { TYPE_NONE, TYPE_FRAME, TYPE_BEL, @@ -178,7 +180,8 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX PortPin> : hash<int> template <> struct hash<NEXTPNR_NAMESPACE_PREFIX GroupId> { - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept { + std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX GroupId &group) const noexcept + { std::size_t seed = 0; boost::hash_combine(seed, hash<int>()(group.type)); boost::hash_combine(seed, hash<int>()(group.x)); @@ -189,7 +192,8 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX GroupId> template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId> { - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX DecalId &decal) const noexcept { + std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX DecalId &decal) const noexcept + { std::size_t seed = 0; boost::hash_combine(seed, hash<int>()(decal.type)); boost::hash_combine(seed, hash<int>()(decal.index)); |