Cleanup with including or removing headers.

PiperOrigin-RevId: 587775999
pull/14959/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 4eeaa22312
commit 53d3e93b6c
  1. 11
      src/google/protobuf/generated_message_reflection.h
  2. 13
      src/google/protobuf/message.h

@ -15,12 +15,13 @@
#ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
#define GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
#include <atomic>
#include <cstddef>
#include <cstdint>
#include <string>
#include "google/protobuf/stubs/common.h"
#include "absl/base/call_once.h"
#include "absl/base/casts.h"
#include "absl/strings/string_view.h"
#include "absl/log/absl_check.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/port.h"
@ -40,6 +41,10 @@ class MapValueRef;
class MessageLayoutInspector;
class Message;
struct Metadata;
namespace io {
class CodedOutputStream;
}
} // namespace protobuf
} // namespace google

@ -87,18 +87,16 @@
#ifndef GOOGLE_PROTOBUF_MESSAGE_H__
#define GOOGLE_PROTOBUF_MESSAGE_H__
#include <iosfwd>
#include <cstddef>
#include <cstdint>
#include <string>
#include <type_traits>
#include <vector>
#include "google/protobuf/stubs/common.h"
#include "absl/base/attributes.h"
#include "absl/base/call_once.h"
#include "absl/base/casts.h"
#include "absl/functional/function_ref.h"
#include "google/protobuf/stubs/common.h"
#include "absl/log/absl_check.h"
#include "absl/log/absl_log.h"
#include "absl/strings/cord.h"
#include "absl/strings/string_view.h"
#include "google/protobuf/arena.h"
@ -148,6 +146,7 @@ struct TailCallTableInfo;
} // namespace internal
class UnknownFieldSet; // unknown_field_set.h
namespace io {
class EpsCopyOutputStream; // coded_stream.h
class ZeroCopyInputStream; // zero_copy_stream.h
class ZeroCopyOutputStream; // zero_copy_stream.h
class CodedInputStream; // coded_stream.h
@ -233,7 +232,7 @@ PROTOBUF_EXPORT bool IsDescendant(Message& root, const Message& message);
// the internal library are allowed to create subclasses.
class PROTOBUF_EXPORT Message : public MessageLite {
public:
constexpr Message() {}
constexpr Message() = default;
Message(const Message&) = delete;
Message& operator=(const Message&) = delete;
@ -1289,7 +1288,7 @@ class PROTOBUF_EXPORT Reflection final {
// around GetPrototype for details
class PROTOBUF_EXPORT MessageFactory {
public:
inline MessageFactory() {}
inline MessageFactory() = default;
MessageFactory(const MessageFactory&) = delete;
MessageFactory& operator=(const MessageFactory&) = delete;
virtual ~MessageFactory();

Loading…
Cancel
Save