aboutsummaryrefslogtreecommitdiffstats
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
parent136ce3d18f3fc463f9364773d481be6c3b0b46f7 (diff)
downloadnextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.tar.gz
nextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.tar.bz2
nextpnr-da33da5bc20bab57f90cf2579a28deb171d5ecef.zip
Minor clangformat changes
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--common/nextpnr.cc4
-rw-r--r--common/nextpnr.h7
2 files changed, 7 insertions, 4 deletions
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<std::string, int> *IdString::database_str_to_idx = nullptr;
-std::vector<const std::string*> *IdString::database_idx_to_str = nullptr;
+std::vector<const std::string *> *IdString::database_idx_to_str = nullptr;
void IdString::initialize()
{
database_str_to_idx = new std::unordered_map<std::string, int>;
- database_idx_to_str = new std::vector<const std::string*>;
+ database_idx_to_str = new std::vector<const std::string *>;
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<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; }