Skip to content

Commit c30e3fd

Browse files
committed
clang-tidy
Signed-off-by: osamahammad21 <[email protected]>
1 parent 0dfc717 commit c30e3fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/odb/src/3dblox/checker.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#include "checker.h"
22

3+
#include <algorithm>
34
#include <cstddef>
45
#include <functional>
56
#include <map>
7+
#include <string>
8+
#include <utility>
69
#include <vector>
710

811
#include "odb/db.h"
12+
#include "odb/geom.h"
913
#include "utl/Logger.h"
1014

1115
namespace odb {
@@ -89,8 +93,9 @@ void Checker::checkFloatingChips(odb::dbChip* chip,
8993
if (sets.size() > 1) {
9094
// Convert to vector and sort by size
9195
std::vector<std::vector<dbChipInst*>> insts_sets;
96+
insts_sets.reserve(sets.size());
9297
for (auto& [root, chips] : sets) {
93-
insts_sets.push_back(chips);
98+
insts_sets.emplace_back(chips);
9499
}
95100

96101
std::sort(

0 commit comments

Comments
 (0)