diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:28:09 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-06-23 15:28:09 +0200 |
commit | a1681560a3c46a0b785c33eddd0038f4fd662675 (patch) | |
tree | a413be3374a3fb9bd4cdbd3f10bc970158276810 /common/nextpnr.h | |
parent | 04db674b3598a3b124bb7052fa40893111107041 (diff) | |
download | nextpnr-a1681560a3c46a0b785c33eddd0038f4fd662675.tar.gz nextpnr-a1681560a3c46a0b785c33eddd0038f4fd662675.tar.bz2 nextpnr-a1681560a3c46a0b785c33eddd0038f4fd662675.zip |
Updates from clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r-- | common/nextpnr.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 2f3b5b14..5b1a6a4f 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -67,15 +67,9 @@ struct IdString bool operator<(const IdString &other) const { return index < other.index; } - bool operator==(const IdString &other) const - { - return index == other.index; - } + bool operator==(const IdString &other) const { return index == other.index; } - bool operator!=(const IdString &other) const - { - return index != other.index; - } + bool operator!=(const IdString &other) const { return index != other.index; } bool empty() const { return index == 0; } @@ -93,8 +87,7 @@ NEXTPNR_NAMESPACE_END namespace std { template <> struct hash<NEXTPNR_NAMESPACE_PREFIX IdString> { - std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX IdString &obj) const - noexcept + std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX IdString &obj) const noexcept { return std::hash<int>()(obj.index); } |