Skip to content

Commit

Permalink
clang-tidy: add <vector> where needed.
Browse files Browse the repository at this point in the history
Automatically created by fixing all files mentioned in
the clang-tidy output:

```
../dev-tools/insert-header "<vector>" $(awk -F: '/no header providing.*std::vector.*misc-include-cleaner/ {print $1}' OpenRoad_clang-tidy.out | sort | uniq)
clang-format -i $(awk -F: '/no header providing.*std::vector.*misc-include-cleaner/ {print $1}' OpenRoad_clang-tidy.out | sort | uniq)
```

Signed-off-by: Henner Zeller <[email protected]>
  • Loading branch information
hzeller committed Jan 11, 2025
1 parent 2e35fb1 commit 4f41ee4
Show file tree
Hide file tree
Showing 349 changed files with 526 additions and 77 deletions.
1 change: 1 addition & 0 deletions src/OpenRoad.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <fstream>
#include <iostream>
#include <thread>
#include <vector>

#include "ord/Version.hh"
#ifdef ENABLE_PYTHON3
Expand Down
2 changes: 2 additions & 0 deletions src/Timing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

#include <tcl.h>

#include <vector>

#include "db_sta/dbNetwork.hh"
#include "db_sta/dbSta.hh"
#include "odb/db.h"
Expand Down
2 changes: 2 additions & 0 deletions src/ant/src/Polygon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

#include "Polygon.hh"

#include <vector>

#include "odb/dbShape.h"

namespace ant {
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <iostream>
#include <limits>
#include <sstream>
#include <vector>

#include "sta/ParseBus.hh"
#include "utl/Logger.h"
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/CtsGraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <algorithm>
#include <cstdio>
#include <limits>
#include <vector>

#include "utl/Logger.h"

Expand Down
1 change: 1 addition & 0 deletions src/cts/src/CtsGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#pragma once

#include <memory>
#include <vector>

#include "Clock.h"
#include "CtsObserver.h"
Expand Down
2 changes: 2 additions & 0 deletions src/cts/src/CtsObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#pragma once

#include <vector>

#include "Clock.h"

namespace cts {
Expand Down
9 changes: 5 additions & 4 deletions src/cts/src/HTreeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <iostream>
#include <map>
#include <memory>
#include <vector>

#include "Clustering.h"
#include "SinkClustering.h"
Expand Down Expand Up @@ -957,7 +958,7 @@ void HTreeBuilder::legalizeDummy()
= (levelIdx == 0)
? topLevelBufferLoc
: topologyForEachLevel_[levelIdx - 1].getBranchingPoint(
parentIdx);
parentIdx);

const std::vector<Point<double>>& sinks
= topology.getBranchSinksLocations(idx);
Expand Down Expand Up @@ -1042,7 +1043,7 @@ void HTreeBuilder::legalize()
= (levelIdx == 0)
? newTopBufferLoc
: topologyForEachLevel_[levelIdx - 1].getBranchingPoint(
parentIdx);
parentIdx);

const std::vector<Point<double>>& sinks
= topology.getBranchSinksLocations(bufferIdx);
Expand Down Expand Up @@ -1238,7 +1239,7 @@ std::string HTreeBuilder::plotHTree()
= (levelIdx == 0)
? topLevelBufferLoc
: topologyForEachLevel_[levelIdx - 1].getBranchingPoint(
parentIdx);
parentIdx);

const std::vector<Point<double>>& sinks
= topology.getBranchSinksLocations(idx);
Expand Down Expand Up @@ -2028,7 +2029,7 @@ void HTreeBuilder::printHTree()
= (levelIdx == 0)
? topLevelBufferLoc
: topologyForEachLevel_[levelIdx - 1].getBranchingPoint(
parentIdx);
parentIdx);

const std::vector<Point<double>>& sinks
= topology.getBranchSinksLocations(idx);
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/HTreeBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#include <cmath>
#include <limits>
#include <vector>

#include "CtsObserver.h"
#include "CtsOptions.h"
Expand Down
2 changes: 2 additions & 0 deletions src/cts/src/LevelBalancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

#include "LevelBalancer.h"

#include <vector>

#include "Clock.h"
#include "CtsOptions.h"
#include "TreeBuilder.h"
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/LevelBalancer.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <cmath>
#include <limits>
#include <map>
#include <vector>

#include "Clock.h"
#include "CtsOptions.h"
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/SinkClustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <map>
#include <string>
#include <tuple>
#include <vector>

#include "stt/SteinerTreeBuilder.h"
#include "utl/Logger.h"
Expand Down
5 changes: 3 additions & 2 deletions src/cts/src/TechChar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <iomanip>
#include <ostream>
#include <sstream>
#include <vector>

#include "db_sta/dbSta.hh"
#include "rsz/Resizer.hh"
Expand Down Expand Up @@ -821,7 +822,7 @@ void TechChar::collectSlewsLoadsFromTableAxis(sta::LibertyCell* libCell,
}
}
} // if (gateModel)
} // for each arc
} // for each arc

if (logger_->debugCheck(utl::CTS, "tech char", 2)) {
logger_->report("axis slews at {}", libCell->name());
Expand Down Expand Up @@ -1663,7 +1664,7 @@ void TechChar::create()
topologiesCreated);
}
} // for each slew
} // for each load
} // for each load
// If the solution is not a pure-wire, update the buffer topologies.
if (!solution.isPureWire) {
updateBufferTopologies(solution);
Expand Down
1 change: 1 addition & 0 deletions src/cts/src/TreeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <iostream>
#include <map>
#include <memory>
#include <vector>

#include "utl/Logger.h"

Expand Down
1 change: 1 addition & 0 deletions src/cts/src/TritonCTS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <fstream>
#include <iterator>
#include <unordered_set>
#include <vector>

#include "Clock.h"
#include "CtsOptions.h"
Expand Down
1 change: 1 addition & 0 deletions src/dbSta/src/dbReadVerilog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#include <map>
#include <string>
#include <vector>

#include "db_sta/dbNetwork.hh"
#include "db_sta/dbSta.hh"
Expand Down
2 changes: 2 additions & 0 deletions src/dbSta/src/heatMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include "heatMap.h"

#include <vector>

#include "db_sta/dbNetwork.hh"
#include "db_sta/dbSta.hh"
#include "sta/Corner.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/Dft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <iostream>
#include <vector>

#include "ClockDomain.hh"
#include "DftConfig.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/architect/Opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <boost/geometry/geometries/register/point.hpp>
#include <boost/geometry/index/rtree.hpp>
#include <iostream>
#include <vector>

#include "ClockDomain.hh"

Expand Down
2 changes: 2 additions & 0 deletions src/dft/src/architect/ScanArchitect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include "ScanArchitect.hh"

#include <vector>

#include "ClockDomain.hh"
#include "ClockDomainHash.hh"
#include "ScanArchitectHeuristic.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/architect/ScanArchitectHeuristic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <iostream>
#include <sstream>
#include <vector>

#include "ClockDomain.hh"
#include "Opt.hh"
Expand Down
2 changes: 2 additions & 0 deletions src/dft/src/architect/ScanChain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include "ScanChain.hh"

#include <vector>

#include "ClockDomain.hh"

namespace dft {
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/cells/ScanCellFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "ScanCellFactory.hh"

#include <iostream>
#include <vector>

#include "ClockDomain.hh"
#include "Utils.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/replace/ScanReplace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <iostream>
#include <limits>
#include <vector>

#include "Utils.hh"
#include "db_sta/dbNetwork.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/stitch/ScanStitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <boost/algorithm/string.hpp>
#include <deque>
#include <iostream>
#include <vector>

namespace {
constexpr std::string_view kScanEnable = "scan-enable";
Expand Down
1 change: 1 addition & 0 deletions src/dft/src/utils/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

#include <iostream>
#include <optional>
#include <vector>

#include "db_sta/dbNetwork.hh"
#include "odb/dbTransform.h"
Expand Down
1 change: 1 addition & 0 deletions src/dft/test/cpp/TestScanArchitectHeuristic.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <sstream>
#include <unordered_set>
#include <vector>

#include "ClockDomain.hh"
#include "ScanArchitect.hh"
Expand Down
1 change: 1 addition & 0 deletions src/dpl/src/CheckPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <cmath>
#include <fstream>
#include <limits>
#include <vector>

#include "Grid.h"
#include "Objects.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpl/src/DecapPlacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
///////////////////////////////////////////////////////////////////////////////

#include <algorithm>
#include <vector>

#include "DecapObjects.h"
#include "Objects.h"
Expand Down
2 changes: 2 additions & 0 deletions src/dpl/src/Graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#pragma once

#include <vector>

#include "DplObserver.h"
#include "gui/gui.h"
#include "odb/db.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpl/src/Grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <boost/polygon/polygon.hpp>
#include <cmath>
#include <limits>
#include <vector>

#include "Objects.h"
#include "Padding.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpl/src/Grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#pragma once

#include <unordered_set>
#include <vector>

#include "Coordinates.h"
#include "dpl/Opendp.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpl/src/Place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <cstdlib>
#include <limits>
#include <memory>
#include <vector>

#include "DplObserver.h"
#include "Grid.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/Optdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <iostream>
#include <limits>
#include <map>
#include <vector>

#include "dpl/Opendp.h"
#include "odb/util.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/color.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "color.h"

#include <algorithm>
#include <vector>

namespace dpo {

Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/detailed.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <iostream>
#include <stack>
#include <utility>
#include <vector>

#include "utility.h"
#include "utl/Logger.h"
Expand Down
2 changes: 2 additions & 0 deletions src/dpo/src/detailed_abu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
////////////////////////////////////////////////////////////////////////////////
#include "detailed_abu.h"

#include <vector>

#include "detailed_orient.h"
#include "utl/Logger.h"

Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/detailed_displacement.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <iostream>
#include <stack>
#include <utility>
#include <vector>

#include "detailed_manager.h"
#include "detailed_orient.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/detailed_global.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "detailed_global.h"

#include <boost/tokenizer.hpp>
#include <vector>

#include "detailed_hpwl.h"
#include "detailed_manager.h"
Expand Down
2 changes: 2 additions & 0 deletions src/dpo/src/detailed_hpwl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
////////////////////////////////////////////////////////////////////////////////
#include "detailed_hpwl.h"

#include <vector>

#include "detailed_orient.h"

namespace dpo {
Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/detailed_manager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <set>
#include <stack>
#include <utility>
#include <vector>

#include "architecture.h"
#include "detailed_orient.h"
Expand Down
1 change: 1 addition & 0 deletions src/dpo/src/detailed_orient.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "detailed_orient.h"

#include <boost/tokenizer.hpp>
#include <vector>

#include "architecture.h"
#include "detailed_manager.h"
Expand Down
Loading

0 comments on commit 4f41ee4

Please sign in to comment.