Skip to content

Commit

Permalink
IWYU: Add missing std includes
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 499893032
Change-Id: I33304802b7c82ae2d008f3ee89df38866e5f57ba
  • Loading branch information
thughes authored and copybara-github committed Jan 5, 2023
1 parent 0296d7d commit e5e46b0
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions googlemock/include/gmock/gmock-matchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@
#include <algorithm>
#include <cmath>
#include <initializer_list>
#include <ios>
#include <iterator>
#include <limits>
#include <memory>
Expand Down
1 change: 1 addition & 0 deletions googlemock/include/gmock/gmock-spec-builders.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
#include <functional>
#include <map>
#include <memory>
#include <ostream>
#include <set>
#include <sstream>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions googletest/include/gtest/gtest-message.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@

#include <limits>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>

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

Expand Down
1 change: 1 addition & 0 deletions googletest/include/gtest/gtest-printers.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
#include <string>
#include <tuple>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions googletest/include/gtest/gtest-spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 2 additions & 0 deletions googletest/include/gtest/gtest-test-part.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions googletest/include/gtest/gtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@

#include <cstddef>
#include <cstdint>
#include <iomanip>
#include <limits>
#include <memory>
#include <ostream>
#include <set>
#include <sstream>
#include <string>
#include <type_traits>
#include <vector>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <stdio.h>

#include <memory>
#include <string>

#include "gtest/gtest-matchers.h"
#include "gtest/internal/gtest-internal.h"
Expand Down
2 changes: 2 additions & 0 deletions googletest/include/gtest/internal/gtest-filepath.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions googletest/include/gtest/internal/gtest-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include <set>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

#include "gtest/gtest-message.h"
Expand Down
3 changes: 3 additions & 0 deletions googletest/include/gtest/internal/gtest-param-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@

#include <cassert>
#include <iterator>
#include <map>
#include <memory>
#include <ostream>
#include <set>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions googletest/include/gtest/internal/gtest-port.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
#include <limits>
#include <locale>
#include <memory>
#include <ostream>
#include <string>
// #include <mutex> // Guarded by GTEST_IS_THREADSAFE below
#include <tuple>
Expand Down
1 change: 1 addition & 0 deletions googletest/include/gtest/internal/gtest-string.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <string.h>

#include <cstdint>
#include <sstream>
#include <string>

#include "gtest/internal/gtest-port.h"
Expand Down
4 changes: 4 additions & 0 deletions googletest/include/gtest/internal/gtest-type-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
#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
Expand Down
1 change: 1 addition & 0 deletions googletest/src/gtest-internal-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <algorithm>
#include <cstdint>
#include <memory>
#include <set>
#include <string>
#include <vector>

Expand Down
2 changes: 2 additions & 0 deletions googletest/test/googletest-filepath-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions googletest/test/googletest-message-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
//
// Tests for the Message class.

#include <sstream>
#include <string>

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

Expand Down
2 changes: 2 additions & 0 deletions googletest/test/googletest-options-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions googletest/test/googletest-port-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions googletest/test/gtest-typed-test_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "test/gtest-typed-test_test.h"

#include <set>
#include <string>
#include <type_traits>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions googletest/test/gtest_pred_impl_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
// stand-alone regression test.

#include <iostream>
#include <ostream>

#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
Expand Down
1 change: 1 addition & 0 deletions googletest/test/gtest_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ TEST(CommandLineFlagsTest, CanBeAccessedInCodeOnceGTestHIsIncluded) {
#include <cstdint>
#include <map>
#include <ostream>
#include <set>
#include <string>
#include <type_traits>
#include <unordered_set>
Expand Down

0 comments on commit e5e46b0

Please sign in to comment.