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 /common | |
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 'common')
-rw-r--r-- | common/nextpnr.h | 49 |
1 files changed, 18 insertions, 31 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h index 00a939a9..5e8c2362 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -268,9 +268,9 @@ struct BaseCtx delete idstring_idx_to_str; } - Context *getCtx() { return reinterpret_cast<Context*>(this); } + Context *getCtx() { return reinterpret_cast<Context *>(this); } - const Context *getCtx() const { return reinterpret_cast<const Context*>(this); } + const Context *getCtx() const { return reinterpret_cast<const Context *>(this); } // -------------------------------------------------------------- @@ -281,35 +281,17 @@ struct BaseCtx std::unordered_set<PipId> pipUiReload; std::unordered_set<GroupId> groupUiReload; - void refreshUi() - { - allUiReload = true; - } + void refreshUi() { allUiReload = true; } - void refreshUiFrame() - { - frameUiReload = true; - } + void refreshUiFrame() { frameUiReload = true; } - void refreshUiBel(BelId bel) - { - belUiReload.insert(bel); - } + void refreshUiBel(BelId bel) { belUiReload.insert(bel); } - void refreshUiWire(WireId wire) - { - wireUiReload.insert(wire); - } + void refreshUiWire(WireId wire) { wireUiReload.insert(wire); } - void refreshUiPip(PipId pip) - { - pipUiReload.insert(pip); - } + void refreshUiPip(PipId pip) { pipUiReload.insert(pip); } - void refreshUiGroup(GroupId group) - { - groupUiReload.insert(group); - } + void refreshUiGroup(GroupId group) { groupUiReload.insert(group); } }; NEXTPNR_NAMESPACE_END @@ -330,7 +312,8 @@ struct Context : Arch // -------------------------------------------------------------- - NPNR_DEPRECATED std::vector<GraphicElement> getFrameGraphics() const { + NPNR_DEPRECATED std::vector<GraphicElement> getFrameGraphics() const + { std::vector<GraphicElement> ret; DecalXY decalxy = getFrameDecal(); ret = getDecalGraphics(decalxy.decal); @@ -343,7 +326,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector<GraphicElement> getBelGraphics(BelId bel) const { + NPNR_DEPRECATED std::vector<GraphicElement> getBelGraphics(BelId bel) const + { std::vector<GraphicElement> ret; DecalXY decalxy = getBelDecal(bel); ret = getDecalGraphics(decalxy.decal); @@ -356,7 +340,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector<GraphicElement> getWireGraphics(WireId wire) const { + NPNR_DEPRECATED std::vector<GraphicElement> getWireGraphics(WireId wire) const + { std::vector<GraphicElement> ret; DecalXY decalxy = getWireDecal(wire); ret = getDecalGraphics(decalxy.decal); @@ -369,7 +354,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector<GraphicElement> getPipGraphics(PipId pip) const { + NPNR_DEPRECATED std::vector<GraphicElement> getPipGraphics(PipId pip) const + { std::vector<GraphicElement> ret; DecalXY decalxy = getPipDecal(pip); ret = getDecalGraphics(decalxy.decal); @@ -382,7 +368,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector<GraphicElement> getGroupGraphics(GroupId group) const { + NPNR_DEPRECATED std::vector<GraphicElement> getGroupGraphics(GroupId group) const + { std::vector<GraphicElement> ret; DecalXY decalxy = getGroupDecal(group); ret = getDecalGraphics(decalxy.decal); |