From a1681560a3c46a0b785c33eddd0038f4fd662675 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 23 Jun 2018 15:28:09 +0200 Subject: Updates from clangformat Signed-off-by: Clifford Wolf --- common/nextpnr.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'common/nextpnr.h') 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 { - 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()(obj.index); } -- cgit v1.2.3