aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-08-20 09:46:49 +0100
committerDavid Shah <dave@ds0.me>2020-08-20 09:46:49 +0100
commit109aa6347442b0d9d163e73257c6fed1a61a3961 (patch)
tree9a2206874b180e9d1ba74abb0c1478c04d0fb90b
parentbe607c10a860c1043dc7554463a8e788759809d8 (diff)
downloadnextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.tar.gz
nextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.tar.bz2
nextpnr-109aa6347442b0d9d163e73257c6fed1a61a3961.zip
clangformat
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--common/pybindings.cc3
-rw-r--r--common/timing.cc3
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);