]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
IWYU: Add missing std includes
authorTom Hughes <tomhughes@google.com>
Thu, 5 Jan 2023 16:43:19 +0000 (08:43 -0800)
committerCopybara-Service <copybara-worker@google.com>
Thu, 5 Jan 2023 16:44:01 +0000 (08:44 -0800)
PiperOrigin-RevId: 499893032
Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba

22 files changed:
googlemock/include/gmock/gmock-matchers.h
googlemock/include/gmock/gmock-spec-builders.h
googletest/include/gtest/gtest-message.h
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-spi.h
googletest/include/gtest/gtest-test-part.h
googletest/include/gtest/gtest.h
googletest/include/gtest/internal/gtest-death-test-internal.h
googletest/include/gtest/internal/gtest-filepath.h
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-param-util.h
googletest/include/gtest/internal/gtest-port.h
googletest/include/gtest/internal/gtest-string.h
googletest/include/gtest/internal/gtest-type-util.h
googletest/src/gtest-internal-inl.h
googletest/test/googletest-filepath-test.cc
googletest/test/googletest-message-test.cc
googletest/test/googletest-options-test.cc
googletest/test/googletest-port-test.cc
googletest/test/gtest-typed-test_test.cc
googletest/test/gtest_pred_impl_unittest.cc
googletest/test/gtest_unittest.cc

index 73be7c99736573aad208e3e8a4c3871c77081b14..9e634f7f1c47b267c2e2ddf5392445cb393ab669 100644 (file)
 #include <algorithm>
 #include <cmath>
 #include <initializer_list>
+#include <ios>
 #include <iterator>
 #include <limits>
 #include <memory>
index c1b725b3df65ecf5b65b2157930376e95e47242a..4e498d8f54f272b2d50de534a7b320a2cc369dbc 100644 (file)
@@ -65,6 +65,7 @@
 #include <functional>
 #include <map>
 #include <memory>
+#include <ostream>
 #include <set>
 #include <sstream>
 #include <string>
index 6c8bf900094a31ad4280e667ecdec149429ff8ec..4d4b152b1d8b708cd9f39385039432a5f3502010 100644 (file)
@@ -50,7 +50,9 @@
 
 #include <limits>
 #include <memory>
+#include <ostream>
 #include <sstream>
+#include <string>
 
 #include "gtest/internal/gtest-port.h"
 
index eeaef04e06d95b63025f8d35879cbdb6818aa070..0055e37ffa7c96edeb856222462a2d3465682ae0 100644 (file)
 #include <string>
 #include <tuple>
 #include <type_traits>
+#include <typeinfo>
 #include <utility>
 #include <vector>
 
index bec8c4810bb189e2efedf6eb2c21d9c199528afb..c0613b6959560be931c52f5d0fd8f9bdf927dcbd 100644 (file)
@@ -33,6 +33,8 @@
 #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
 #define GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
 
+#include <string>
+
 #include "gtest/gtest.h"
 
 GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \
index 09cc8c34f0413bd36cda310e6cd893cc3e1c51cf..8290b4d653d1678433db6c27e1ebe5b3499387b7 100644 (file)
@@ -35,6 +35,8 @@
 #define GOOGLETEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
 
 #include <iosfwd>
+#include <ostream>
+#include <string>
 #include <vector>
 
 #include "gtest/internal/gtest-internal.h"
index fcad3ae256295ae5813665b3044240a44bef298a..3e452a503f8950c8ae04e257912e472015c4f60d 100644 (file)
 
 #include <cstddef>
 #include <cstdint>
+#include <iomanip>
 #include <limits>
 #include <memory>
 #include <ostream>
+#include <set>
+#include <sstream>
+#include <string>
 #include <type_traits>
 #include <vector>
 
index 347821708b163d0985ec442f3a5194065de429e9..4687dae2b46af65c80ea75dc93455037f50e6b6b 100644 (file)
@@ -42,6 +42,7 @@
 #include <stdio.h>
 
 #include <memory>
+#include <string>
 
 #include "gtest/gtest-matchers.h"
 #include "gtest/internal/gtest-internal.h"
index ceba8f200d4649c09624bb7b381b1796d02b700a..5189c81dabfa6687f362e6bcafc2662e3dec3196 100644 (file)
@@ -42,6 +42,8 @@
 #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
 #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
 
+#include <string>
+
 #include "gtest/internal/gtest-port.h"
 #include "gtest/internal/gtest-string.h"
 
index e9c2441acd4243c523eaf70b13b7c1154488d6ee..3121d428b398447602b495599b0c5f4a12a74d1d 100644 (file)
@@ -64,6 +64,7 @@
 #include <set>
 #include <string>
 #include <type_traits>
+#include <utility>
 #include <vector>
 
 #include "gtest/gtest-message.h"
index fb989e0ba3614098911cd0707717b4d9cd8fc827..7092d10e677c7a47ffea46b064efd5d3b2e85352 100644 (file)
 
 #include <cassert>
 #include <iterator>
+#include <map>
 #include <memory>
+#include <ostream>
 #include <set>
+#include <string>
 #include <tuple>
 #include <type_traits>
 #include <utility>
index d427f71204ad16f1a4059e6fb3324c23fca0c8fd..5d81adb3520fba2b285f66da7c2cc02bb304fd8e 100644 (file)
 #include <limits>
 #include <locale>
 #include <memory>
+#include <ostream>
 #include <string>
 // #include <mutex>  // Guarded by GTEST_IS_THREADSAFE below
 #include <tuple>
index cca2e1f2ad98f9ecffbf090962f032eff54568a8..cc0dd7529c165447c9171561092c3ce15d403390 100644 (file)
@@ -51,6 +51,7 @@
 #include <string.h>
 
 #include <cstdint>
+#include <sstream>
 #include <string>
 
 #include "gtest/internal/gtest-port.h"
index 6bc02a7de30afc662599742908a2e451895fdaed..17a470b62658a4e2742d268ed2d61353294b1c09 100644 (file)
 #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
 #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
 
+#include <string>
+#include <type_traits>
+#include <typeinfo>
+
 #include "gtest/internal/gtest-port.h"
 
 // #ifdef __GNUC__ is too general here.  It is possible to use gcc without using
index ddef4bbdb1df65f1c88e8e2bfabe8e3d79a0c4dd..2c9db4f207854dba430fbed9ad79490289c46e13 100644 (file)
@@ -44,6 +44,7 @@
 #include <algorithm>
 #include <cstdint>
 #include <memory>
+#include <set>
 #include <string>
 #include <vector>
 
index 1e2cc4aafa7e736a7608ae051e742a07dc17c478..5f0c9c2fb8bfbb3920a4ad07ece104af2c8dab1c 100644 (file)
@@ -35,6 +35,8 @@
 // This file is #included from gtest-internal.h.
 // Do not #include this file anywhere else!
 
+#include <string>
+
 #include "gtest/gtest.h"
 #include "gtest/internal/gtest-filepath.h"
 #include "src/gtest-internal-inl.h"
index 252a861977a2d04a2ed264b2ea04e9318252e3a5..54e9d43c9208e441aeb1a9672732e300831c4e56 100644 (file)
@@ -30,6 +30,9 @@
 //
 // Tests for the Message class.
 
+#include <sstream>
+#include <string>
+
 #include "gtest/gtest-message.h"
 #include "gtest/gtest.h"
 
index 1265c22511a8408d7d89a5cd10eb1ee01403c6ad..8746320985ac2412b367c2932d18b63d1a3846bb 100644 (file)
@@ -36,6 +36,8 @@
 // make-files on Windows and other platforms. Do not #include this file
 // anywhere else!
 
+#include <string>
+
 #include "gtest/gtest.h"
 
 #if GTEST_OS_WINDOWS_MOBILE
index c20dfa4c4ca847a36ac30a54fcc2b31dc936e213..bb536ac546652668d64d8326125b65b935989d73 100644 (file)
@@ -39,6 +39,7 @@
 #include <chrono>  // NOLINT
 #include <list>
 #include <memory>
+#include <string>
 #include <thread>   // NOLINT
 #include <utility>  // For std::pair and std::make_pair.
 #include <vector>
index af23f86d14dd143981ba8f82d77fe3d5cead7a1a..4b1c23ddb9f7dcc4959acf015b03a7e7d2d8c91b 100644 (file)
@@ -30,6 +30,7 @@
 #include "test/gtest-typed-test_test.h"
 
 #include <set>
+#include <string>
 #include <type_traits>
 #include <vector>
 
index 3d4366537430a2383ceaa4d9026133d9604cc85b..033e2d9f6519489abd962dcbe37be40916698370 100644 (file)
@@ -45,6 +45,7 @@
 // stand-alone regression test.
 
 #include <iostream>
+#include <ostream>
 
 #include "gtest/gtest-spi.h"
 #include "gtest/gtest.h"
index 8bd21be98857d930188d40491560378d714c8592..e66e66b95ed47566d67fd85cf3053a7e089b1995 100644 (file)
@@ -61,6 +61,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
 #include <cstdint>
 #include <map>
 #include <ostream>
+#include <set>
 #include <string>
 #include <type_traits>
 #include <unordered_set>