Skip to content

Commit e5e46b0

Browse files
thughescopybara-github
authored andcommitted
IWYU: Add missing std includes
PiperOrigin-RevId: 499893032 Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
1 parent 0296d7d commit e5e46b0

22 files changed

+38
-0
lines changed

googlemock/include/gmock/gmock-matchers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
#include <algorithm>
259259
#include <cmath>
260260
#include <initializer_list>
261+
#include <ios>
261262
#include <iterator>
262263
#include <limits>
263264
#include <memory>

googlemock/include/gmock/gmock-spec-builders.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#include <functional>
6666
#include <map>
6767
#include <memory>
68+
#include <ostream>
6869
#include <set>
6970
#include <sstream>
7071
#include <string>

googletest/include/gtest/gtest-message.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050

5151
#include <limits>
5252
#include <memory>
53+
#include <ostream>
5354
#include <sstream>
55+
#include <string>
5456

5557
#include "gtest/internal/gtest-port.h"
5658

googletest/include/gtest/gtest-printers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
#include <string>
109109
#include <tuple>
110110
#include <type_traits>
111+
#include <typeinfo>
111112
#include <utility>
112113
#include <vector>
113114

googletest/include/gtest/gtest-spi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
3434
#define GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
3535

36+
#include <string>
37+
3638
#include "gtest/gtest.h"
3739

3840
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \

googletest/include/gtest/gtest-test-part.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#define GOOGLETEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
3636

3737
#include <iosfwd>
38+
#include <ostream>
39+
#include <string>
3840
#include <vector>
3941

4042
#include "gtest/internal/gtest-internal.h"

googletest/include/gtest/gtest.h

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

5252
#include <cstddef>
5353
#include <cstdint>
54+
#include <iomanip>
5455
#include <limits>
5556
#include <memory>
5657
#include <ostream>
58+
#include <set>
59+
#include <sstream>
60+
#include <string>
5761
#include <type_traits>
5862
#include <vector>
5963

googletest/include/gtest/internal/gtest-death-test-internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include <stdio.h>
4343

4444
#include <memory>
45+
#include <string>
4546

4647
#include "gtest/gtest-matchers.h"
4748
#include "gtest/internal/gtest-internal.h"

googletest/include/gtest/internal/gtest-filepath.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
#ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
4343
#define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
4444

45+
#include <string>
46+
4547
#include "gtest/internal/gtest-port.h"
4648
#include "gtest/internal/gtest-string.h"
4749

googletest/include/gtest/internal/gtest-internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#include <set>
6565
#include <string>
6666
#include <type_traits>
67+
#include <utility>
6768
#include <vector>
6869

6970
#include "gtest/gtest-message.h"

googletest/include/gtest/internal/gtest-param-util.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@
4040

4141
#include <cassert>
4242
#include <iterator>
43+
#include <map>
4344
#include <memory>
45+
#include <ostream>
4446
#include <set>
47+
#include <string>
4548
#include <tuple>
4649
#include <type_traits>
4750
#include <utility>

googletest/include/gtest/internal/gtest-port.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
#include <limits>
271271
#include <locale>
272272
#include <memory>
273+
#include <ostream>
273274
#include <string>
274275
// #include <mutex> // Guarded by GTEST_IS_THREADSAFE below
275276
#include <tuple>

googletest/include/gtest/internal/gtest-string.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include <string.h>
5252

5353
#include <cstdint>
54+
#include <sstream>
5455
#include <string>
5556

5657
#include "gtest/internal/gtest-port.h"

googletest/include/gtest/internal/gtest-type-util.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
3838
#define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
3939

40+
#include <string>
41+
#include <type_traits>
42+
#include <typeinfo>
43+
4044
#include "gtest/internal/gtest-port.h"
4145

4246
// #ifdef __GNUC__ is too general here. It is possible to use gcc without using

googletest/src/gtest-internal-inl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include <algorithm>
4545
#include <cstdint>
4646
#include <memory>
47+
#include <set>
4748
#include <string>
4849
#include <vector>
4950

googletest/test/googletest-filepath-test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
// This file is #included from gtest-internal.h.
3636
// Do not #include this file anywhere else!
3737

38+
#include <string>
39+
3840
#include "gtest/gtest.h"
3941
#include "gtest/internal/gtest-filepath.h"
4042
#include "src/gtest-internal-inl.h"

googletest/test/googletest-message-test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
//
3131
// Tests for the Message class.
3232

33+
#include <sstream>
34+
#include <string>
35+
3336
#include "gtest/gtest-message.h"
3437
#include "gtest/gtest.h"
3538

googletest/test/googletest-options-test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
// make-files on Windows and other platforms. Do not #include this file
3737
// anywhere else!
3838

39+
#include <string>
40+
3941
#include "gtest/gtest.h"
4042

4143
#if GTEST_OS_WINDOWS_MOBILE

googletest/test/googletest-port-test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <chrono> // NOLINT
4040
#include <list>
4141
#include <memory>
42+
#include <string>
4243
#include <thread> // NOLINT
4344
#include <utility> // For std::pair and std::make_pair.
4445
#include <vector>

googletest/test/gtest-typed-test_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "test/gtest-typed-test_test.h"
3131

3232
#include <set>
33+
#include <string>
3334
#include <type_traits>
3435
#include <vector>
3536

googletest/test/gtest_pred_impl_unittest.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
// stand-alone regression test.
4646

4747
#include <iostream>
48+
#include <ostream>
4849

4950
#include "gtest/gtest-spi.h"
5051
#include "gtest/gtest.h"

googletest/test/gtest_unittest.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
6161
#include <cstdint>
6262
#include <map>
6363
#include <ostream>
64+
#include <set>
6465
#include <string>
6566
#include <type_traits>
6667
#include <unordered_set>

0 commit comments

Comments
 (0)