From da33da5bc20bab57f90cf2579a28deb171d5ecef Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 12 Jun 2018 15:52:38 +0200 Subject: Minor clangformat changes Signed-off-by: Clifford Wolf --- common/nextpnr.cc | 4 ++-- common/nextpnr.h | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/nextpnr.cc b/common/nextpnr.cc index d2b887de..d177fe71 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -22,12 +22,12 @@ NEXTPNR_NAMESPACE_BEGIN std::unordered_map *IdString::database_str_to_idx = nullptr; -std::vector *IdString::database_idx_to_str = nullptr; +std::vector *IdString::database_idx_to_str = nullptr; void IdString::initialize() { database_str_to_idx = new std::unordered_map; - database_idx_to_str = new std::vector; + database_idx_to_str = new std::vector; initialize_add("", 0); initialize_chip(); } diff --git a/common/nextpnr.h b/common/nextpnr.h index 4288f7fc..d1314c27 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -46,7 +46,7 @@ struct IdString int index = 0; static std::unordered_map *database_str_to_idx; - static std::vector *database_idx_to_str; + static std::vector *database_idx_to_str; static void initialize(); static void initialize_chip(); @@ -91,7 +91,10 @@ struct IdString operator const std::string &() const { return str(); } 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 std::string &s) const { return str() == s; } bool operator==(const char *s) const { return str() == s; } -- cgit v1.2.3