Skip to content

Commit

Permalink
Minor cleanup: IWYU, clang-tidy, etc.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625497645
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Apr 17, 2024
1 parent 7d24d5f commit e75f87e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 0 additions & 3 deletions src/google/protobuf/has_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#include <cstdint>
#include <initializer_list>

#include "google/protobuf/stubs/common.h"
#include "google/protobuf/port.h"

// Must be included last.
#include "google/protobuf/port_def.inc"

Expand Down
5 changes: 2 additions & 3 deletions src/google/protobuf/message_lite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,22 @@
#include <string>
#include <utility>

#include "absl/base/dynamic_annotations.h"
#include "absl/base/optimization.h"
#include "absl/log/absl_check.h"
#include "absl/log/absl_log.h"
#include "absl/strings/cord.h"
#include "absl/strings/cord_buffer.h"
#include "absl/strings/internal/resize_uninitialized.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h"
#include "absl/types/optional.h"
#include "absl/types/span.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/generated_message_tctable_impl.h"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/io/zero_copy_stream.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/parse_context.h"


Expand Down
8 changes: 4 additions & 4 deletions src/google/protobuf/message_lite.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__
#define GOOGLE_PROTOBUF_MESSAGE_LITE_H__

#include <atomic>
#include <climits>
#include <cstddef>
#include <cstdint>
#include <iosfwd>
#include <string>

#include "google/protobuf/stubs/common.h"
#include "absl/base/call_once.h"
#include "absl/base/attributes.h"
#include "absl/log/absl_check.h"
#include "absl/strings/cord.h"
#include "absl/strings/string_view.h"
Expand Down Expand Up @@ -208,7 +208,7 @@ PROTOBUF_EXPORT size_t StringSpaceUsedExcludingSelfLong(const std::string& str);
// the internal library are allowed to create subclasses.
class PROTOBUF_EXPORT MessageLite {
public:
constexpr MessageLite() {}
constexpr MessageLite() = default;
MessageLite(const MessageLite&) = delete;
MessageLite& operator=(const MessageLite&) = delete;
virtual ~MessageLite() = default;
Expand Down

0 comments on commit e75f87e

Please sign in to comment.