aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-25 18:19:25 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-25 18:19:25 +0200
commitbe47fc3e9a81a4890b05223ae18803cb07674dc9 (patch)
treeb0690ae9c7fd1c06db96ab036c3e177d50f6961d /generic
parentec47ce2320fdc9d698e71c07af0844f7ecc2445c (diff)
downloadnextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.tar.gz
nextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.tar.bz2
nextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.zip
clangformat run
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc3
-rw-r--r--generic/main.cc8
2 files changed, 6 insertions, 5 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 2db9e547..fa3c825d 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -505,7 +505,8 @@ bool Arch::place()
}
}
-bool Arch::route() {
+bool Arch::route()
+{
bool retVal = router1(getCtx(), Router1Cfg(getCtx()));
getCtx()->settings[getCtx()->id("route")] = "1";
archInfoToAttributes();
diff --git a/generic/main.cc b/generic/main.cc
index 1f0ee22d..ce1a51c7 100644
--- a/generic/main.cc
+++ b/generic/main.cc
@@ -32,7 +32,7 @@ class GenericCommandHandler : public CommandHandler
public:
GenericCommandHandler(int argc, char **argv);
virtual ~GenericCommandHandler(){};
- std::unique_ptr<Context> createContext(std::unordered_map<std::string,Property> &values) override;
+ std::unique_ptr<Context> createContext(std::unordered_map<std::string, Property> &values) override;
void setupArchContext(Context *ctx) override{};
void customBitstream(Context *ctx) override;
@@ -51,14 +51,14 @@ po::options_description GenericCommandHandler::getArchOptions()
void GenericCommandHandler::customBitstream(Context *ctx) {}
-std::unique_ptr<Context> GenericCommandHandler::createContext(std::unordered_map<std::string,Property> &values)
+std::unique_ptr<Context> GenericCommandHandler::createContext(std::unordered_map<std::string, Property> &values)
{
ArchArgs chipArgs;
- if (values.find("arch.name")!=values.end()) {
+ if (values.find("arch.name") != values.end()) {
std::string arch_name = values["arch.name"].str;
if (arch_name != "generic")
log_error("Unsuported architecture '%s'.\n", arch_name.c_str());
- }
+ }
return std::unique_ptr<Context>(new Context(chipArgs));
}