diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-12 22:04:13 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-12 22:04:13 +0200 |
commit | b8a42ff53b1fbb6e03d169d14e58180a750f4cad (patch) | |
tree | 72920e1ca49d1520045c5df847abe227f70b2a2a /generic | |
parent | ad60ab2ef164678cdde4410906cea674d122bf13 (diff) | |
download | nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.gz nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.tar.bz2 nextpnr-b8a42ff53b1fbb6e03d169d14e58180a750f4cad.zip |
Updates from clang-format
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/arch.cc | 33 | ||||
-rw-r--r-- | generic/main.cc | 10 |
2 files changed, 12 insertions, 31 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index 1e1434d3..ec2443f2 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -109,25 +109,13 @@ void Arch::addBelInout(IdString bel, IdString name, IdString wire) wires.at(wire).downhill_bel_pins.push_back(BelPin{bel, name}); } -void Arch::addGroupBel(IdString group, IdString bel) -{ - groups[group].bels.push_back(bel); -} +void Arch::addGroupBel(IdString group, IdString bel) { groups[group].bels.push_back(bel); } -void Arch::addGroupWire(IdString group, IdString wire) -{ - groups[group].wires.push_back(wire); -} +void Arch::addGroupWire(IdString group, IdString wire) { groups[group].wires.push_back(wire); } -void Arch::addGroupPip(IdString group, IdString pip) -{ - groups[group].pips.push_back(pip); -} +void Arch::addGroupPip(IdString group, IdString pip) { groups[group].pips.push_back(pip); } -void Arch::addGroupGroup(IdString group, IdString grp) -{ - groups[group].groups.push_back(grp); -} +void Arch::addGroupGroup(IdString group, IdString grp) { groups[group].groups.push_back(grp); } void Arch::addDecalGraphic(DecalId decal, const GraphicElement &graphic) { @@ -330,7 +318,8 @@ GroupId Arch::getGroupByName(IdString name) const { return name; } IdString Arch::getGroupName(GroupId group) const { return group; } -std::vector<GroupId> Arch::getGroups() const { +std::vector<GroupId> Arch::getGroups() const +{ std::vector<GroupId> ret; for (auto &it : groups) ret.push_back(it.first); @@ -365,15 +354,9 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const // --------------------------------------------------------------- -bool Arch::place() -{ - return placer1(getCtx()); -} +bool Arch::place() { return placer1(getCtx()); } -bool Arch::route() -{ - return router1(getCtx()); -} +bool Arch::route() { return router1(getCtx()); } // --------------------------------------------------------------- diff --git a/generic/main.cc b/generic/main.cc index d025d8d4..6f4774d1 100644 --- a/generic/main.cc +++ b/generic/main.cc @@ -75,18 +75,16 @@ int main(int argc, char *argv[]) } if (vm.count("help") || argc == 1) { - std::cout << boost::filesystem::basename(argv[0]) - << " -- Next Generation Place and Route (git " - "sha1 " GIT_COMMIT_HASH_STR ")\n"; + std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git " + "sha1 " GIT_COMMIT_HASH_STR ")\n"; std::cout << "\n"; std::cout << options << "\n"; return argc != 1; } if (vm.count("version")) { - std::cout << boost::filesystem::basename(argv[0]) - << " -- Next Generation Place and Route (git " - "sha1 " GIT_COMMIT_HASH_STR ")\n"; + std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git " + "sha1 " GIT_COMMIT_HASH_STR ")\n"; return 1; } |