aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/json
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-18 14:07:18 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-18 14:07:18 +0200
commit58e3104796480c66a303a4266e6459c7b21295ea (patch)
treea67c779f5eb3bf9c9865a373cced512fdfe30ff9 /frontend/json
parent8ee149f4fcb66cb61aa729263448c0935fb4d2ad (diff)
downloadnextpnr-58e3104796480c66a303a4266e6459c7b21295ea.tar.gz
nextpnr-58e3104796480c66a303a4266e6459c7b21295ea.tar.bz2
nextpnr-58e3104796480c66a303a4266e6459c7b21295ea.zip
Updates from clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontend/json')
-rw-r--r--frontend/json/jsonparse.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/frontend/json/jsonparse.cc b/frontend/json/jsonparse.cc
index 26919d24..3d13a512 100644
--- a/frontend/json/jsonparse.cc
+++ b/frontend/json/jsonparse.cc
@@ -547,8 +547,8 @@ void json_import_cell(Context *ctx, string modname,
for (int paramid = 0; paramid < GetSize(param_node->data_dict_keys);
paramid++) {
- json_import_cell_params(ctx, modname, cell, param_node,
- &cell->params, paramid);
+ json_import_cell_params(ctx, modname, cell, param_node, &cell->params,
+ paramid);
}
attr_node = cell_node->data_dict.at("attributes");
@@ -741,10 +741,9 @@ void json_import(Context *ctx, string modname, JsonNode *node)
netnames.resize(netid + 1);
netnames.at(netid) =
basename +
- (num_bits == 1
- ? ""
- : std::string("[") + std::to_string(i) +
- std::string("]"));
+ (num_bits == 1 ? "" : std::string("[") +
+ std::to_string(i) +
+ std::string("]"));
}
}
}
@@ -793,8 +792,7 @@ struct JsonFrontend
// JsonFrontend() : Frontend("json", "read JSON file") { }
JsonFrontend(void) {}
virtual void help() {}
- virtual void execute(std::istream *&f, std::string &filename,
- Context *ctx)
+ virtual void execute(std::istream *&f, std::string &filename, Context *ctx)
{
// log_header(ctx, "Executing JSON frontend.\n");