Removed unnecessary includes from stubs/common.h

pull/5260/head
Adam Cozzette 7 years ago
parent c7352b39f8
commit 5e37bbf924
  1. 1
      src/google/protobuf/compiler/python/python_generator.h
  2. 2
      src/google/protobuf/stubs/bytestream.cc
  3. 15
      src/google/protobuf/stubs/common.cc
  4. 5
      src/google/protobuf/stubs/common.h
  5. 2
      src/google/protobuf/stubs/common_unittest.cc
  6. 2
      src/google/protobuf/stubs/int128.cc
  7. 2
      src/google/protobuf/stubs/statusor.cc
  8. 2
      src/google/protobuf/stubs/stringpiece.cc
  9. 2
      src/google/protobuf/stubs/stringprintf.cc
  10. 1
      src/google/protobuf/stubs/strutil.cc
  11. 2
      src/google/protobuf/stubs/substitute.cc
  12. 1
      src/google/protobuf/testing/file.cc
  13. 1
      src/google/protobuf/testing/googletest.h
  14. 1
      src/google/protobuf/util/internal/datapiece.h
  15. 1
      src/google/protobuf/util/internal/field_mask_utility.h

@ -38,6 +38,7 @@
#include <string>
#include <google/protobuf/compiler/code_generator.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/port_def.inc>

@ -33,6 +33,8 @@
#include <string.h>
#include <algorithm>
#include <google/protobuf/stubs/logging.h>
namespace google {
namespace protobuf {
namespace strings {

@ -31,11 +31,7 @@
// Author: kenton@google.com (Kenton Varda)
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/stubs/status.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/int128.h>
#include <errno.h>
#include <sstream>
#include <stdio.h>
@ -54,6 +50,15 @@
#include <android/log.h>
#endif
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/stubs/status.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/int128.h>
#include <google/protobuf/port_def.inc>
namespace google {

@ -47,11 +47,6 @@
#include <google/protobuf/stubs/macros.h>
#include <google/protobuf/stubs/platform_macros.h>
// TODO(liujisi): Remove the following includes after the include clean-up.
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/mutex.h>
#include <google/protobuf/stubs/callback.h>
#ifndef PROTOBUF_USE_EXCEPTIONS
#if defined(_MSC_VER) && defined(_CPPUNWIND)
#define PROTOBUF_USE_EXCEPTIONS 1

@ -31,8 +31,10 @@
// Author: kenton@google.com (Kenton Varda)
#include <vector>
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/substitute.h>

@ -34,6 +34,8 @@
#include <ostream> // NOLINT(readability/streams)
#include <sstream>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/port_def.inc>
namespace google {

@ -30,6 +30,8 @@
#include <google/protobuf/stubs/statusor.h>
#include <google/protobuf/stubs/logging.h>
namespace google {
namespace protobuf {
namespace util {

@ -35,6 +35,8 @@
#include <string>
#include <ostream>
#include <google/protobuf/stubs/logging.h>
namespace google {
namespace protobuf {
std::ostream& operator<<(std::ostream& o, StringPiece piece) {

@ -36,7 +36,9 @@
#include <stdarg.h> // For va_list and related operations
#include <stdio.h> // MSVC requires this for _vsnprintf
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
namespace google {
namespace protobuf {

@ -40,6 +40,7 @@
#include <iterator>
#include <limits>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stl_util.h>
#ifdef _WIN32

@ -31,6 +31,8 @@
// Author: kenton@google.com (Kenton Varda)
#include <google/protobuf/stubs/substitute.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/stl_util.h>

@ -46,6 +46,7 @@
#include <errno.h>
#include <google/protobuf/stubs/io_win32.h>
#include <google/protobuf/stubs/logging.h>
namespace google {
namespace protobuf {

@ -37,6 +37,7 @@
#include <map>
#include <vector>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <gmock/gmock.h>
// Disable death tests if we use exceptions in CHECK().
#if !PROTOBUF_USE_EXCEPTIONS && defined(GTEST_HAS_DEATH_TEST) && \

@ -34,6 +34,7 @@
#include <string>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/statusor.h>

@ -36,6 +36,7 @@
#include <functional>
#include <stack>
#include <google/protobuf/stubs/callback.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/stringpiece.h>
#include <google/protobuf/stubs/status.h>

Loading…
Cancel
Save