aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-12 15:52:38 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-12 15:52:38 +0200
commitda33da5bc20bab57f90cf2579a28deb171d5ecef (patch)
tree499ca9c94b24a4f66d49127ed77c7fd85da843e2 /common/nextpnr.h
parent136ce3d18f3fc463f9364773d481be6c3b0b46f7 (diff)
downloadnextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.tar.gz
nextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.tar.bz2
nextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.zip
Minor clangformat changes
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h7
1 files changed, 5 insertions, 2 deletions
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<std::string, int> *database_str_to_idx;
- static std::vector<const std::string*> *database_idx_to_str;
+ static std::vector<const std::string *> *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; }