Commit e5e46b09 authored by Tom Hughes's avatar Tom Hughes Committed by Copybara-Service
Browse files

IWYU: Add missing std includes

PiperOrigin-RevId: 499893032
Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
parent 0296d7d3
...@@ -258,6 +258,7 @@ ...@@ -258,6 +258,7 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <initializer_list> #include <initializer_list>
#include <ios>
#include <iterator> #include <iterator>
#include <limits> #include <limits>
#include <memory> #include <memory>
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
#include <functional> #include <functional>
#include <map> #include <map>
#include <memory> #include <memory>
#include <ostream>
#include <set> #include <set>
#include <sstream> #include <sstream>
#include <string> #include <string>
......
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <ostream>
#include <sstream> #include <sstream>
#include <string>
#include "gtest/internal/gtest-port.h" #include "gtest/internal/gtest-port.h"
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
#include <string> #include <string>
#include <tuple> #include <tuple>
#include <type_traits> #include <type_traits>
#include <typeinfo>
#include <utility> #include <utility>
#include <vector> #include <vector>
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_ #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
#define GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_ #define GOOGLETEST_INCLUDE_GTEST_GTEST_SPI_H_
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \ GTEST_DISABLE_MSC_WARNINGS_PUSH_(4251 \
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#define GOOGLETEST_INCLUDE_GTEST_GTEST_TEST_PART_H_ #define GOOGLETEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#include <iosfwd> #include <iosfwd>
#include <ostream>
#include <string>
#include <vector> #include <vector>
#include "gtest/internal/gtest-internal.h" #include "gtest/internal/gtest-internal.h"
......
...@@ -51,9 +51,13 @@ ...@@ -51,9 +51,13 @@
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <iomanip>
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <ostream> #include <ostream>
#include <set>
#include <sstream>
#include <string>
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include <stdio.h> #include <stdio.h>
#include <memory> #include <memory>
#include <string>
#include "gtest/gtest-matchers.h" #include "gtest/gtest-matchers.h"
#include "gtest/internal/gtest-internal.h" #include "gtest/internal/gtest-internal.h"
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_ #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#define 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-port.h"
#include "gtest/internal/gtest-string.h" #include "gtest/internal/gtest-string.h"
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
#include <set> #include <set>
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include <utility>
#include <vector> #include <vector>
#include "gtest/gtest-message.h" #include "gtest/gtest-message.h"
......
...@@ -40,8 +40,11 @@ ...@@ -40,8 +40,11 @@
#include <cassert> #include <cassert>
#include <iterator> #include <iterator>
#include <map>
#include <memory> #include <memory>
#include <ostream>
#include <set> #include <set>
#include <string>
#include <tuple> #include <tuple>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
......
...@@ -270,6 +270,7 @@ ...@@ -270,6 +270,7 @@
#include <limits> #include <limits>
#include <locale> #include <locale>
#include <memory> #include <memory>
#include <ostream>
#include <string> #include <string>
// #include <mutex> // Guarded by GTEST_IS_THREADSAFE below // #include <mutex> // Guarded by GTEST_IS_THREADSAFE below
#include <tuple> #include <tuple>
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include <string.h> #include <string.h>
#include <cstdint> #include <cstdint>
#include <sstream>
#include <string> #include <string>
#include "gtest/internal/gtest-port.h" #include "gtest/internal/gtest-port.h"
......
...@@ -37,6 +37,10 @@ ...@@ -37,6 +37,10 @@
#ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_ #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_TYPE_UTIL_H_
#define 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" #include "gtest/internal/gtest-port.h"
// #ifdef __GNUC__ is too general here. It is possible to use gcc without using // #ifdef __GNUC__ is too general here. It is possible to use gcc without using
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <algorithm> #include <algorithm>
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#include <set>
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
// This file is #included from gtest-internal.h. // This file is #included from gtest-internal.h.
// Do not #include this file anywhere else! // Do not #include this file anywhere else!
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "gtest/internal/gtest-filepath.h" #include "gtest/internal/gtest-filepath.h"
#include "src/gtest-internal-inl.h" #include "src/gtest-internal-inl.h"
......
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
// //
// Tests for the Message class. // Tests for the Message class.
#include <sstream>
#include <string>
#include "gtest/gtest-message.h" #include "gtest/gtest-message.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
// make-files on Windows and other platforms. Do not #include this file // make-files on Windows and other platforms. Do not #include this file
// anywhere else! // anywhere else!
#include <string>
#include "gtest/gtest.h" #include "gtest/gtest.h"
#if GTEST_OS_WINDOWS_MOBILE #if GTEST_OS_WINDOWS_MOBILE
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <chrono> // NOLINT #include <chrono> // NOLINT
#include <list> #include <list>
#include <memory> #include <memory>
#include <string>
#include <thread> // NOLINT #include <thread> // NOLINT
#include <utility> // For std::pair and std::make_pair. #include <utility> // For std::pair and std::make_pair.
#include <vector> #include <vector>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "test/gtest-typed-test_test.h" #include "test/gtest-typed-test_test.h"
#include <set> #include <set>
#include <string>
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment