diff options
author | David Shah <dave@ds0.me> | 2020-08-20 09:46:49 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-08-20 09:46:49 +0100 |
commit | 109aa6347442b0d9d163e73257c6fed1a61a3961 (patch) | |
tree | 9a2206874b180e9d1ba74abb0c1478c04d0fb90b /common | |
parent | be607c10a860c1043dc7554463a8e788759809d8 (diff) | |
download | nextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.tar.gz nextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.tar.bz2 nextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.zip |
clangformat
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r-- | common/pybindings.cc | 3 | ||||
-rw-r--r-- | common/timing.cc | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/common/pybindings.cc b/common/pybindings.cc index 8f824f1e..0f5780b5 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -88,7 +88,8 @@ PYBIND11_MODULE(MODULE_NAME, m) { py::register_exception_translator([](std::exception_ptr p) { try { - if (p) std::rethrow_exception(p); + if (p) + std::rethrow_exception(p); } catch (const assertion_failure &e) { PyErr_SetString(PyExc_AssertionError, e.what()); } diff --git a/common/timing.cc b/common/timing.cc index 8322df6d..d4d33183 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -246,7 +246,8 @@ struct Timing // been visited auto it = port_fanin.find(&port.second); if (it == port_fanin.end()) - log_error("Timing counted negative fanin count for port %s.%s (net %s), please report this error.\n", + log_error("Timing counted negative fanin count for port %s.%s (net %s), please report this " + "error.\n", ctx->nameOf(usr.cell), ctx->nameOf(port.first), ctx->nameOf(port.second.net)); if (--it->second == 0) { topological_order.emplace_back(port.second.net); |