From b8a42ff53b1fbb6e03d169d14e58180a750f4cad Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 12 Jul 2018 22:04:13 +0200 Subject: Updates from clang-format Signed-off-by: Clifford Wolf --- common/nextpnr.h | 49 ++++++++++++++++++------------------------------- 1 file changed, 18 insertions(+), 31 deletions(-) (limited to 'common') 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(this); } + Context *getCtx() { return reinterpret_cast(this); } - const Context *getCtx() const { return reinterpret_cast(this); } + const Context *getCtx() const { return reinterpret_cast(this); } // -------------------------------------------------------------- @@ -281,35 +281,17 @@ struct BaseCtx std::unordered_set pipUiReload; std::unordered_set 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 getFrameGraphics() const { + NPNR_DEPRECATED std::vector getFrameGraphics() const + { std::vector ret; DecalXY decalxy = getFrameDecal(); ret = getDecalGraphics(decalxy.decal); @@ -343,7 +326,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector getBelGraphics(BelId bel) const { + NPNR_DEPRECATED std::vector getBelGraphics(BelId bel) const + { std::vector ret; DecalXY decalxy = getBelDecal(bel); ret = getDecalGraphics(decalxy.decal); @@ -356,7 +340,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector getWireGraphics(WireId wire) const { + NPNR_DEPRECATED std::vector getWireGraphics(WireId wire) const + { std::vector ret; DecalXY decalxy = getWireDecal(wire); ret = getDecalGraphics(decalxy.decal); @@ -369,7 +354,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector getPipGraphics(PipId pip) const { + NPNR_DEPRECATED std::vector getPipGraphics(PipId pip) const + { std::vector ret; DecalXY decalxy = getPipDecal(pip); ret = getDecalGraphics(decalxy.decal); @@ -382,7 +368,8 @@ struct Context : Arch return ret; } - NPNR_DEPRECATED std::vector getGroupGraphics(GroupId group) const { + NPNR_DEPRECATED std::vector getGroupGraphics(GroupId group) const + { std::vector ret; DecalXY decalxy = getGroupDecal(group); ret = getDecalGraphics(decalxy.decal); -- cgit v1.2.3