From e5e46b09a10cf0f575dbab2702b72f2460e31964 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 5 Jan 2023 08:43:19 -0800 Subject: IWYU: Add missing std includes PiperOrigin-RevId: 499893032 Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba --- googlemock/include/gmock/gmock-matchers.h | 1 + googlemock/include/gmock/gmock-spec-builders.h | 1 + googletest/include/gtest/gtest-message.h | 2 ++ googletest/include/gtest/gtest-printers.h | 1 + googletest/include/gtest/gtest-spi.h | 2 ++ googletest/include/gtest/gtest-test-part.h | 2 ++ googletest/include/gtest/gtest.h | 4 ++++ googletest/include/gtest/internal/gtest-death-test-internal.h | 1 + googletest/include/gtest/internal/gtest-filepath.h | 2 ++ googletest/include/gtest/internal/gtest-internal.h | 1 + googletest/include/gtest/internal/gtest-param-util.h | 3 +++ googletest/include/gtest/internal/gtest-port.h | 1 + googletest/include/gtest/internal/gtest-string.h | 1 + googletest/include/gtest/internal/gtest-type-util.h | 4 ++++ googletest/src/gtest-internal-inl.h | 1 + googletest/test/googletest-filepath-test.cc | 2 ++ googletest/test/googletest-message-test.cc | 3 +++ googletest/test/googletest-options-test.cc | 2 ++ googletest/test/googletest-port-test.cc | 1 + googletest/test/gtest-typed-test_test.cc | 1 + googletest/test/gtest_pred_impl_unittest.cc | 1 + googletest/test/gtest_unittest.cc | 1 + 22 files changed, 38 insertions(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 73be7c9..9e634f7 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -258,6 +258,7 @@ #include #include #include +#include #include #include #include diff --git a/googlemock/include/gmock/gmock-spec-builders.h b/googlemock/include/gmock/gmock-spec-builders.h index c1b725b..4e498d8 100644 --- a/googlemock/include/gmock/gmock-spec-builders.h +++ b/googlemock/include/gmock/gmock-spec-builders.h @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include diff --git a/googletest/include/gtest/gtest-message.h b/googletest/include/gtest/gtest-message.h index 6c8bf90..4d4b152 100644 --- a/googletest/include/gtest/gtest-message.h +++ b/googletest/include/gtest/gtest-message.h @@ -50,7 +50,9 @@ #include #include +#include #include +#include #include "gtest/internal/gtest-port.h" diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h index eeaef04..0055e37 100644 --- a/googletest/include/gtest/gtest-printers.h +++ b/googletest/include/gtest/gtest-printers.h @@ -108,6 +108,7 @@ #include #include #include +#include #include #include diff --git a/googletest/include/gtest/gtest-spi.h b/googletest/include/gtest/gtest-spi.h index bec8c48..c0613b6 100644 --- a/googletest/include/gtest/gtest-spi.h +++ b/googletest/include/gtest/gtest-spi.h @@ -33,6 +33,8 @@ #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_ #define GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_ +#include + #include "gtest/gtest.h" GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \ diff --git a/googletest/include/gtest/gtest-test-part.h b/googletest/include/gtest/gtest-test-part.h index 09cc8c3..8290b4d 100644 --- a/googletest/include/gtest/gtest-test-part.h +++ b/googletest/include/gtest/gtest-test-part.h @@ -35,6 +35,8 @@ #define GOOGLETEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ #include +#include +#include #include #include "gtest/internal/gtest-internal.h" diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index fcad3ae..3e452a5 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -51,9 +51,13 @@ #include #include +#include #include #include #include +#include +#include +#include #include #include diff --git a/googletest/include/gtest/internal/gtest-death-test-internal.h b/googletest/include/gtest/internal/gtest-death-test-internal.h index 3478217..4687dae 100644 --- a/googletest/include/gtest/internal/gtest-death-test-internal.h +++ b/googletest/include/gtest/internal/gtest-death-test-internal.h @@ -42,6 +42,7 @@ #include #include +#include #include "gtest/gtest-matchers.h" #include "gtest/internal/gtest-internal.h" diff --git a/googletest/include/gtest/internal/gtest-filepath.h b/googletest/include/gtest/internal/gtest-filepath.h index ceba8f2..5189c81 100644 --- a/googletest/include/gtest/internal/gtest-filepath.h +++ b/googletest/include/gtest/internal/gtest-filepath.h @@ -42,6 +42,8 @@ #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ +#include + #include "gtest/internal/gtest-port.h" #include "gtest/internal/gtest-string.h" diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h index e9c2441..3121d42 100644 --- a/googletest/include/gtest/internal/gtest-internal.h +++ b/googletest/include/gtest/internal/gtest-internal.h @@ -64,6 +64,7 @@ #include #include #include +#include #include #include "gtest/gtest-message.h" diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h index fb989e0..7092d10 100644 --- a/googletest/include/gtest/internal/gtest-param-util.h +++ b/googletest/include/gtest/internal/gtest-param-util.h @@ -40,8 +40,11 @@ #include #include +#include #include +#include #include +#include #include #include #include diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index d427f71..5d81adb 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -270,6 +270,7 @@ #include #include #include +#include #include // #include // Guarded by GTEST_IS_THREADSAFE below #include diff --git a/googletest/include/gtest/internal/gtest-string.h b/googletest/include/gtest/internal/gtest-string.h index cca2e1f..cc0dd75 100644 --- a/googletest/include/gtest/internal/gtest-string.h +++ b/googletest/include/gtest/internal/gtest-string.h @@ -51,6 +51,7 @@ #include #include +#include #include #include "gtest/internal/gtest-port.h" diff --git a/googletest/include/gtest/internal/gtest-type-util.h b/googletest/include/gtest/internal/gtest-type-util.h index 6bc02a7..17a470b 100644 --- a/googletest/include/gtest/internal/gtest-type-util.h +++ b/googletest/include/gtest/internal/gtest-type-util.h @@ -37,6 +37,10 @@ #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ +#include +#include +#include + #include "gtest/internal/gtest-port.h" // #ifdef __GNUC__ is too general here. It is possible to use gcc without using diff --git a/googletest/src/gtest-internal-inl.h b/googletest/src/gtest-internal-inl.h index ddef4bb..2c9db4f 100644 --- a/googletest/src/gtest-internal-inl.h +++ b/googletest/src/gtest-internal-inl.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include diff --git a/googletest/test/googletest-filepath-test.cc b/googletest/test/googletest-filepath-test.cc index 1e2cc4a..5f0c9c2 100644 --- a/googletest/test/googletest-filepath-test.cc +++ b/googletest/test/googletest-filepath-test.cc @@ -35,6 +35,8 @@ // This file is #included from gtest-internal.h. // Do not #include this file anywhere else! +#include + #include "gtest/gtest.h" #include "gtest/internal/gtest-filepath.h" #include "src/gtest-internal-inl.h" diff --git a/googletest/test/googletest-message-test.cc b/googletest/test/googletest-message-test.cc index 252a861..54e9d43 100644 --- a/googletest/test/googletest-message-test.cc +++ b/googletest/test/googletest-message-test.cc @@ -30,6 +30,9 @@ // // Tests for the Message class. +#include +#include + #include "gtest/gtest-message.h" #include "gtest/gtest.h" diff --git a/googletest/test/googletest-options-test.cc b/googletest/test/googletest-options-test.cc index 1265c22..8746320 100644 --- a/googletest/test/googletest-options-test.cc +++ b/googletest/test/googletest-options-test.cc @@ -36,6 +36,8 @@ // make-files on Windows and other platforms. Do not #include this file // anywhere else! +#include + #include "gtest/gtest.h" #if GTEST_OS_WINDOWS_MOBILE diff --git a/googletest/test/googletest-port-test.cc b/googletest/test/googletest-port-test.cc index c20dfa4..bb536ac 100644 --- a/googletest/test/googletest-port-test.cc +++ b/googletest/test/googletest-port-test.cc @@ -39,6 +39,7 @@ #include // NOLINT #include #include +#include #include // NOLINT #include // For std::pair and std::make_pair. #include diff --git a/googletest/test/gtest-typed-test_test.cc b/googletest/test/gtest-typed-test_test.cc index af23f86..4b1c23d 100644 --- a/googletest/test/gtest-typed-test_test.cc +++ b/googletest/test/gtest-typed-test_test.cc @@ -30,6 +30,7 @@ #include "test/gtest-typed-test_test.h" #include +#include #include #include diff --git a/googletest/test/gtest_pred_impl_unittest.cc b/googletest/test/gtest_pred_impl_unittest.cc index 3d43665..033e2d9 100644 --- a/googletest/test/gtest_pred_impl_unittest.cc +++ b/googletest/test/gtest_pred_impl_unittest.cc @@ -45,6 +45,7 @@ // stand-alone regression test. #include +#include #include "gtest/gtest-spi.h" #include "gtest/gtest.h" diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 8bd21be..e66e66b 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -61,6 +61,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) { #include #include #include +#include #include #include #include -- cgit v0.12