diff --git a/src/google/protobuf/arena.h b/src/google/protobuf/arena.h index 06acc3d1b4..748b23e36b 100644 --- a/src/google/protobuf/arena.h +++ b/src/google/protobuf/arena.h @@ -33,7 +33,6 @@ #ifndef GOOGLE_PROTOBUF_ARENA_H__ #define GOOGLE_PROTOBUF_ARENA_H__ - #include #include #include diff --git a/src/google/protobuf/descriptor.h b/src/google/protobuf/descriptor.h index a8062418ed..9822ca7513 100644 --- a/src/google/protobuf/descriptor.h +++ b/src/google/protobuf/descriptor.h @@ -72,7 +72,6 @@ #include "absl/synchronization/mutex.h" #include "google/protobuf/port.h" - // Must be included last. #include "google/protobuf/port_def.inc" diff --git a/src/google/protobuf/descriptor_database.h b/src/google/protobuf/descriptor_database.h index 591a5b7725..7a4b0a3cdd 100644 --- a/src/google/protobuf/descriptor_database.h +++ b/src/google/protobuf/descriptor_database.h @@ -37,7 +37,6 @@ #ifndef GOOGLE_PROTOBUF_DESCRIPTOR_DATABASE_H__ #define GOOGLE_PROTOBUF_DESCRIPTOR_DATABASE_H__ - #include #include #include diff --git a/src/google/protobuf/dynamic_message.h b/src/google/protobuf/dynamic_message.h index fc677b52be..737b3813d8 100644 --- a/src/google/protobuf/dynamic_message.h +++ b/src/google/protobuf/dynamic_message.h @@ -38,7 +38,6 @@ #ifndef GOOGLE_PROTOBUF_DYNAMIC_MESSAGE_H__ #define GOOGLE_PROTOBUF_DYNAMIC_MESSAGE_H__ - #include #include #include diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h index d91111a690..0cb295f377 100644 --- a/src/google/protobuf/extension_set.h +++ b/src/google/protobuf/extension_set.h @@ -38,7 +38,6 @@ #ifndef GOOGLE_PROTOBUF_EXTENSION_SET_H__ #define GOOGLE_PROTOBUF_EXTENSION_SET_H__ - #include #include #include diff --git a/src/google/protobuf/generated_enum_reflection.h b/src/google/protobuf/generated_enum_reflection.h index 31ddc12e03..2092521721 100644 --- a/src/google/protobuf/generated_enum_reflection.h +++ b/src/google/protobuf/generated_enum_reflection.h @@ -39,7 +39,6 @@ #ifndef GOOGLE_PROTOBUF_GENERATED_ENUM_REFLECTION_H__ #define GOOGLE_PROTOBUF_GENERATED_ENUM_REFLECTION_H__ - #include #include "google/protobuf/port.h" diff --git a/src/google/protobuf/generated_enum_util.h b/src/google/protobuf/generated_enum_util.h index 86e1bb95de..1f06f2f6a7 100644 --- a/src/google/protobuf/generated_enum_util.h +++ b/src/google/protobuf/generated_enum_util.h @@ -31,7 +31,6 @@ #ifndef GOOGLE_PROTOBUF_GENERATED_ENUM_UTIL_H__ #define GOOGLE_PROTOBUF_GENERATED_ENUM_UTIL_H__ - #include #include "absl/strings/string_view.h" diff --git a/src/google/protobuf/map.h b/src/google/protobuf/map.h index 1ca3be5887..b01445b2c5 100644 --- a/src/google/protobuf/map.h +++ b/src/google/protobuf/map.h @@ -37,7 +37,6 @@ #ifndef GOOGLE_PROTOBUF_MAP_H__ #define GOOGLE_PROTOBUF_MAP_H__ - #include #include #include diff --git a/src/google/protobuf/message.h b/src/google/protobuf/message.h index 28b9fc70f8..8317c92fa7 100644 --- a/src/google/protobuf/message.h +++ b/src/google/protobuf/message.h @@ -110,7 +110,6 @@ #ifndef GOOGLE_PROTOBUF_MESSAGE_H__ #define GOOGLE_PROTOBUF_MESSAGE_H__ - #include #include #include diff --git a/src/google/protobuf/message_lite.h b/src/google/protobuf/message_lite.h index fade4bbaf8..6b056b803d 100644 --- a/src/google/protobuf/message_lite.h +++ b/src/google/protobuf/message_lite.h @@ -39,7 +39,6 @@ #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__ #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__ - #include #include #include diff --git a/src/google/protobuf/reflection.h b/src/google/protobuf/reflection.h index df9e5a7965..f85de91322 100644 --- a/src/google/protobuf/reflection.h +++ b/src/google/protobuf/reflection.h @@ -33,7 +33,6 @@ #ifndef GOOGLE_PROTOBUF_REFLECTION_H__ #define GOOGLE_PROTOBUF_REFLECTION_H__ - #include #include "google/protobuf/message.h" diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h index f8a591778a..d0f6ca448b 100644 --- a/src/google/protobuf/repeated_field.h +++ b/src/google/protobuf/repeated_field.h @@ -44,7 +44,6 @@ #ifndef GOOGLE_PROTOBUF_REPEATED_FIELD_H__ #define GOOGLE_PROTOBUF_REPEATED_FIELD_H__ - #include #include #include diff --git a/src/google/protobuf/repeated_ptr_field.h b/src/google/protobuf/repeated_ptr_field.h index 0d82a8e516..66efc68ddc 100644 --- a/src/google/protobuf/repeated_ptr_field.h +++ b/src/google/protobuf/repeated_ptr_field.h @@ -41,8 +41,6 @@ // // This header covers RepeatedPtrField. -// IWYU pragma: private, include "net/proto2/public/repeated_field.h" - #ifndef GOOGLE_PROTOBUF_REPEATED_PTR_FIELD_H__ #define GOOGLE_PROTOBUF_REPEATED_PTR_FIELD_H__ diff --git a/src/google/protobuf/service.h b/src/google/protobuf/service.h index a512e71981..8ebdb8bb5d 100644 --- a/src/google/protobuf/service.h +++ b/src/google/protobuf/service.h @@ -100,7 +100,6 @@ #ifndef GOOGLE_PROTOBUF_SERVICE_H__ #define GOOGLE_PROTOBUF_SERVICE_H__ - #include #include "google/protobuf/stubs/callback.h" diff --git a/src/google/protobuf/text_format.h b/src/google/protobuf/text_format.h index 2cd4024d65..99bcf2a5c9 100644 --- a/src/google/protobuf/text_format.h +++ b/src/google/protobuf/text_format.h @@ -38,7 +38,6 @@ #ifndef GOOGLE_PROTOBUF_TEXT_FORMAT_H__ #define GOOGLE_PROTOBUF_TEXT_FORMAT_H__ - #include #include #include diff --git a/src/google/protobuf/unknown_field_set.h b/src/google/protobuf/unknown_field_set.h index e5d8a9579a..f8764ec064 100644 --- a/src/google/protobuf/unknown_field_set.h +++ b/src/google/protobuf/unknown_field_set.h @@ -38,7 +38,6 @@ #ifndef GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__ #define GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__ - #include #include diff --git a/src/google/protobuf/util/delimited_message_util.h b/src/google/protobuf/util/delimited_message_util.h index e52646f1c1..2f19261bc2 100644 --- a/src/google/protobuf/util/delimited_message_util.h +++ b/src/google/protobuf/util/delimited_message_util.h @@ -34,7 +34,6 @@ #ifndef GOOGLE_PROTOBUF_UTIL_DELIMITED_MESSAGE_UTIL_H__ #define GOOGLE_PROTOBUF_UTIL_DELIMITED_MESSAGE_UTIL_H__ - #include #include "google/protobuf/message_lite.h" diff --git a/src/google/protobuf/util/field_comparator.h b/src/google/protobuf/util/field_comparator.h index 1988b9ed10..b3479b3c7a 100644 --- a/src/google/protobuf/util/field_comparator.h +++ b/src/google/protobuf/util/field_comparator.h @@ -33,7 +33,6 @@ #ifndef GOOGLE_PROTOBUF_UTIL_FIELD_COMPARATOR_H__ #define GOOGLE_PROTOBUF_UTIL_FIELD_COMPARATOR_H__ - #include #include #include diff --git a/src/google/protobuf/util/json_util.h b/src/google/protobuf/util/json_util.h index 2f4f2cb220..2bf7680232 100644 --- a/src/google/protobuf/util/json_util.h +++ b/src/google/protobuf/util/json_util.h @@ -34,8 +34,6 @@ #define GOOGLE_PROTOBUF_UTIL_JSON_UTIL_H__ #include "absl/base/attributes.h" - - #include "google/protobuf/json/json.h" namespace google { diff --git a/src/google/protobuf/util/message_differencer.h b/src/google/protobuf/util/message_differencer.h index 250528e4e4..bb4d26967d 100644 --- a/src/google/protobuf/util/message_differencer.h +++ b/src/google/protobuf/util/message_differencer.h @@ -43,9 +43,6 @@ #ifndef GOOGLE_PROTOBUF_UTIL_MESSAGE_DIFFERENCER_H__ #define GOOGLE_PROTOBUF_UTIL_MESSAGE_DIFFERENCER_H__ -#include "google/protobuf/stubs/logging.h" - - #include #include #include @@ -58,6 +55,7 @@ #include "google/protobuf/unknown_field_set.h" #include "google/protobuf/stubs/common.h" #include "absl/container/fixed_array.h" +#include "google/protobuf/stubs/logging.h" #include "google/protobuf/util/field_comparator.h" // Always include as last one, otherwise it can break compilation diff --git a/src/google/protobuf/wire_format.h b/src/google/protobuf/wire_format.h index 5abd8138f4..ece429fcaf 100644 --- a/src/google/protobuf/wire_format.h +++ b/src/google/protobuf/wire_format.h @@ -39,7 +39,6 @@ #ifndef GOOGLE_PROTOBUF_WIRE_FORMAT_H__ #define GOOGLE_PROTOBUF_WIRE_FORMAT_H__ - #include "google/protobuf/stubs/common.h" #include "absl/base/casts.h" #include "google/protobuf/descriptor.h" diff --git a/src/google/protobuf/wire_format_lite.h b/src/google/protobuf/wire_format_lite.h index b95098e94b..dd6e6c794e 100644 --- a/src/google/protobuf/wire_format_lite.h +++ b/src/google/protobuf/wire_format_lite.h @@ -40,7 +40,6 @@ #ifndef GOOGLE_PROTOBUF_WIRE_FORMAT_LITE_H__ #define GOOGLE_PROTOBUF_WIRE_FORMAT_LITE_H__ - #include #include