Skip to content

Commit 17bfa00

Browse files
committed
add dependency and include for fmt::format to fix clang-tidy-bazel error
Signed-off-by: Thinh Nguyen <nguyenthinh19011@gmail.com>
1 parent be9147b commit 17bfa00

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/ram/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ cc_library(
4040
"//src/sta:opensta_lib",
4141
"//src/utl",
4242
"@boost.stacktrace",
43+
"@spdlog",
4344
"@tcl_lang//:tcl",
4445
],
4546
)

src/ram/src/ram.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "pdn/PdnGen.hh"
2828
#include "ppl/IOPlacer.h"
2929
#include "ram/layout.h"
30+
#include "spdlog/fmt/fmt.h"
3031
#include "sta/ConcreteLibrary.hh"
3132
#include "sta/FuncExpr.hh"
3233
#include "sta/Liberty.hh"
@@ -1505,8 +1506,7 @@ void RamGen::generate(const int mask_size,
15051506
auto nl_cell = std::make_unique<Cell>();
15061507
makeInst(
15071508
nl_cell.get(),
1508-
fmt::format("neg_lat_b{}",
1509-
global_bit), // NOLINT(misc-include-cleaner)
1509+
fmt::format("neg_lat_b{}", global_bit),
15101510
"nlat",
15111511
latch_cell_,
15121512
{{latch_ports_[{PortRoleType::Clock, 0}], clk_b_net},

0 commit comments

Comments
 (0)