Skip to content

Commit

Permalink
fix some clang-tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <fgaray@google.com>
  • Loading branch information
fgaray committed Feb 20, 2024
1 parent 8a3c7ed commit d772a56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/odb/src/db/dbScanInst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ std::vector<dbInst*> dbScanInst::getInsts() const

std::vector<dbInst*> insts;

for (dbId<dbInst> id : scan_inst->insts_) {
for (const dbId<dbInst>& id : scan_inst->insts_) {
insts.push_back((dbInst*) block->_inst_tbl->getPtr((dbId<_dbInst>) id));
}

Expand Down
7 changes: 4 additions & 3 deletions src/odb/test/cpp/scan/TestScanChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "helper.h"
#include "env.h"

namespace odb {
namespace {

using namespace odb;

constexpr std::string_view kPartition1 = "CHAIN_1_FALLING_1";
constexpr std::string_view kPartition2 = "CHAIN_1_RISING_1";

Expand Down Expand Up @@ -70,7 +70,7 @@ class TestScanChain : public testing::Test
{
db_ = create2LevetDbWithBTerms();
block_ = db_->getChip()->getBlock();
tmp_path_ = std::string(std::getenv("BASE_DIR")) + "/results/TestScanChain";
tmp_path_ = testTmpPath("/results/TestScanChain");
dft_ = block_->createDft();

std::vector<std::string> instances_names = {"i1", "i2", "i3"};
Expand Down Expand Up @@ -206,3 +206,4 @@ TEST_F(TestScanChain, CreateScanChainWithPartition)
}

} // namespace
} // namespace odb

0 comments on commit d772a56

Please sign in to comment.