Skip to content

Commit 90bb7aa

Browse files
committed
odb: clang-tidy requested changes
Signed-off-by: osamahammad21 <[email protected]>
1 parent 03ce502 commit 90bb7aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/odb/src/db/dbMarker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "dbChip.h"
2727
#include "dbCore.h"
2828
#include "odb/dbBlockCallBackObj.h"
29+
#include "odb/dbObject.h"
2930
// User Code End Includes
3031
namespace odb {
3132
template class dbTable<_dbMarker>;

src/odb/test/cpp/Test3DBloxChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#include <iostream>
21
#include <string>
32

43
#include "gtest/gtest.h"
54
#include "odb/3dblox.h"
65
#include "odb/db.h"
6+
#include "odb/dbObject.h"
77
#include "odb/geom.h"
88
#include "tst/fixture.h"
99

@@ -132,7 +132,7 @@ TEST_F(CheckerFixture, test_floating_chips)
132132
auto sources = marker->getSources();
133133
EXPECT_EQ(sources.size(), 1);
134134
// Verify the floating chip is inst3
135-
if (sources.size() > 0) {
135+
if (!sources.empty()) {
136136
auto src = *sources.begin();
137137
EXPECT_EQ(src->getObjectType(), dbObjectType::dbChipInstObj);
138138
auto chip_inst = static_cast<dbChipInst*>(src);

0 commit comments

Comments
 (0)