Skip to content

Commit 26d894d

Browse files
committed
IWYU: fix most of the missing includes for std::* types.
A bit more than a handful, fixes > 1400 misc-include-cleaner warnings. Using the output of clang-tidy and a few scripts to make it happen. Signed-off-by: Henner Zeller <[email protected]>
1 parent d8ed3d6 commit 26d894d

File tree

446 files changed

+1063
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+1063
-0
lines changed

src/Design.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
#include <tcl.h>
77

8+
#include <cmath>
89
#include <cstdint>
10+
#include <istream>
11+
#include <mutex>
12+
#include <ostream>
913
#include <string>
1014

1115
#include "ant/AntennaChecker.hh"

src/Main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Copyright (c) 2019-2025, The OpenROAD Authors
33

44
#include <libgen.h>
5+
#include <stdlib.h> // NOLINT(modernize-deprecated-headers): for setenv()
6+
#include <strings.h>
57
#include <tcl.h>
68

79
#include <array>

src/OpenRoad.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33

44
#include "ord/OpenRoad.hh"
55

6+
#include <cstdlib>
7+
#include <cstring>
68
#include <filesystem>
79
#include <fstream>
810
#include <iostream>
11+
#include <stdexcept>
12+
#include <string>
913
#include <thread>
1014
#include <vector>
1115

src/Timing.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <tcl.h>
77

88
#include <algorithm>
9+
#include <array>
10+
#include <cstring>
911
#include <set>
1012
#include <utility>
1113
#include <vector>

src/ant/src/AntennaChecker.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#include <iostream>
1313
#include <map>
1414
#include <memory>
15+
#include <mutex>
1516
#include <queue>
1617
#include <set>
18+
#include <unordered_map>
1719
#include <unordered_set>
1820
#include <utility>
1921
#include <vector>

src/ant/src/WireBuilder.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33

44
#include "WireBuilder.hh"
55

6+
#include <algorithm>
7+
#include <cmath>
8+
#include <cstddef>
69
#include <limits>
10+
#include <map>
11+
#include <tuple>
12+
#include <unordered_set>
13+
#include <utility>
14+
#include <vector>
715

816
#include "boost/functional/hash.hpp"
917
#include "odb/dbShape.h"

src/cts/src/Clustering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <algorithm>
1212
#include <array>
1313
#include <cfloat>
14+
#include <cmath>
1415
#include <cstdio>
1516
#include <cstdlib>
1617
#include <ctime>

src/cts/src/CtsGraphics.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "CtsGraphics.h"
55

66
#include <algorithm>
7+
#include <cmath>
78
#include <cstdio>
89
#include <limits>
910
#include <string>

src/cts/src/TechChar.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
#include "TechChar.h"
55

66
#include <algorithm>
7+
#include <bitset>
78
#include <cmath>
89
#include <cstddef>
910
#include <cstdint>
11+
#include <deque>
1012
#include <fstream>
1113
#include <functional>
1214
#include <iomanip>
15+
#include <iterator>
1316
#include <limits>
1417
#include <ostream>
1518
#include <sstream>

src/cts/src/TechChar.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <memory>
1717
#include <set>
1818
#include <string>
19+
#include <tuple>
1920
#include <unordered_map>
2021
#include <utility>
2122
#include <vector>

0 commit comments

Comments
 (0)