From 2b560ad0ccc6e7e93ad8bd6cb0f88f925bbb314b Mon Sep 17 00:00:00 2001 From: gatecat Date: Fri, 19 Jun 2026 09:13:08 +0200 Subject: [PATCH] clangformat Signed-off-by: gatecat --- common/kernel/command.cc | 11 +++++------ himbaechel/uarch/gatemate/gatemate.cc | 3 ++- himbaechel/uarch/gatemate/pack_clocking.cc | 5 +++-- himbaechel/uarch/gatemate/route_clock.cc | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/common/kernel/command.cc b/common/kernel/command.cc index 23c7395f..c64d8a86 100644 --- a/common/kernel/command.cc +++ b/common/kernel/command.cc @@ -193,14 +193,13 @@ void init_share_dirname() std::string proc_self_path = proc_self_dirname(); for (const std::string &proc_share_path : { - proc_self_path + "share/", - proc_self_path + "../share/nextpnr/", - proc_self_path + "../share/", + proc_self_path + "share/", + proc_self_path + "../share/nextpnr/", + proc_self_path + "../share/", #ifdef nextpnr_DATDIR - nextpnr_DATDIR "/", + nextpnr_DATDIR "/", #endif - }) - { + }) { if (check_file_exists(proc_share_path, true)) { npnr_share_dirname = proc_share_path; return; diff --git a/himbaechel/uarch/gatemate/gatemate.cc b/himbaechel/uarch/gatemate/gatemate.cc index 5d04336d..4d96ffc2 100644 --- a/himbaechel/uarch/gatemate/gatemate.cc +++ b/himbaechel/uarch/gatemate/gatemate.cc @@ -40,7 +40,8 @@ po::options_description GateMateImpl::getUArchOptions() specific.add_options()("out", po::value(), "textual configuration bitstream output file"); specific.add_options()("ccf", po::value(), "name of constraints file"); specific.add_options()("allow-unconstrained", "allow unconstrained IOs"); - specific.add_options()("fpga_mode", po::value(), "performance mode (1:lowpower, 2:economy, 3:speed (default))"); + specific.add_options()("fpga_mode", po::value(), + "performance mode (1:lowpower, 2:economy, 3:speed (default))"); specific.add_options()("time_mode", po::value(), "timing mode (1:best, 2:typical, 3:worst (default))"); specific.add_options()("strategy", po::value(), "multi-die clock placement strategy (mirror (default), full or clk1)"); diff --git a/himbaechel/uarch/gatemate/pack_clocking.cc b/himbaechel/uarch/gatemate/pack_clocking.cc index 8449cc5f..20d10d55 100644 --- a/himbaechel/uarch/gatemate/pack_clocking.cc +++ b/himbaechel/uarch/gatemate/pack_clocking.cc @@ -319,8 +319,9 @@ void GateMatePacker::pll_out(CellInfo *cell, IdString origPort, Loc fixed) } if (bufg) { if (net->users.entries() != 1) { - std::string msg = stringf("A PLL output (here %s of %s) connected to a BUFG could only connect to it, not %d ports:\n", - origPort.c_str(ctx), ctx->nameOf(cell), net->users.entries()); + std::string msg = stringf( + "A PLL output (here %s of %s) connected to a BUFG could only connect to it, not %d ports:\n", + origPort.c_str(ctx), ctx->nameOf(cell), net->users.entries()); for (auto &usr : net->users) { msg += stringf(" %s.%s\n", ctx->nameOf(usr.cell), ctx->nameOf(usr.port)); } diff --git a/himbaechel/uarch/gatemate/route_clock.cc b/himbaechel/uarch/gatemate/route_clock.cc index 14c57575..4ff79402 100644 --- a/himbaechel/uarch/gatemate/route_clock.cc +++ b/himbaechel/uarch/gatemate/route_clock.cc @@ -17,9 +17,9 @@ * */ +#include #include #include -#include #include "gatemate.h" #include "log.h"