aboutsummaryrefslogtreecommitdiffstats
path: root/json
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-01-28 14:38:20 +0000
committerD. Shah <dave@ds0.me>2021-01-28 14:38:20 +0000
commit0d9790421699a22fc6a5962b41910c3b7d089353 (patch)
tree62ec831daf16806e16535eeca8764e20bdbce757 /json
parentb671d8f59d425b6faf07167b7360cecd12366151 (diff)
downloadnextpnr-0d9790421699a22fc6a5962b41910c3b7d089353.tar.gz
nextpnr-0d9790421699a22fc6a5962b41910c3b7d089353.tar.bz2
nextpnr-0d9790421699a22fc6a5962b41910c3b7d089353.zip
clangformat
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'json')
-rw-r--r--json/jsonwrite.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/json/jsonwrite.cc b/json/jsonwrite.cc
index d4a62a5a..f92b7038 100644
--- a/json/jsonwrite.cc
+++ b/json/jsonwrite.cc
@@ -135,8 +135,9 @@ void write_module(std::ostream &f, Context *ctx)
for (auto &port : ports) {
f << stringf("%s\n", first ? "" : ",");
f << stringf(" %s: {\n", get_string(port.name).c_str());
- f << stringf(" \"direction\": \"%s\",\n",
- port.dir == PORT_IN ? "input" : port.dir == PORT_INOUT ? "inout" : "output");
+ f << stringf(" \"direction\": \"%s\",\n", port.dir == PORT_IN ? "input"
+ : port.dir == PORT_INOUT ? "inout"
+ : "output");
f << stringf(" \"bits\": %s\n", format_port_bits(port, dummy_idx).c_str());
f << stringf(" }");
first = false;