diff options
author | Evan Brown <ezb@google.com> | 2024-03-25 09:47:22 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-25 09:48:26 -0700 |
commit | 06e119066162d7dfa21c4481446e580772ff51f1 (patch) | |
tree | 054b9d6853dc49a7c4de9c813b41a65253ceea8e /absl/container | |
parent | c2cf2d38d2ec11eb68b4e89a1c9051b055e91689 (diff) |
Fix ClangTidy warnings in btree.h.
PiperOrigin-RevId: 618872032
Change-Id: I9fdfadff906494eb64cee976c02a1fff57923c79
Diffstat (limited to 'absl/container')
-rw-r--r-- | absl/container/BUILD.bazel | 2 | ||||
-rw-r--r-- | absl/container/CMakeLists.txt | 4 | ||||
-rw-r--r-- | absl/container/internal/btree.h | 5 |
3 files changed, 5 insertions, 6 deletions
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel index c1df8d83..78ad60e0 100644 --- a/absl/container/BUILD.bazel +++ b/absl/container/BUILD.bazel @@ -1004,6 +1004,7 @@ cc_library( ":compressed_tuple", ":container_memory", ":layout", + "//absl/base:config", "//absl/base:core_headers", "//absl/base:raw_logging_internal", "//absl/base:throw_delegate", @@ -1012,7 +1013,6 @@ cc_library( "//absl/strings", "//absl/strings:cord", "//absl/types:compare", - "//absl/utility", ], ) diff --git a/absl/container/CMakeLists.txt b/absl/container/CMakeLists.txt index 7fa2e914..04055816 100644 --- a/absl/container/CMakeLists.txt +++ b/absl/container/CMakeLists.txt @@ -27,10 +27,11 @@ absl_cc_library( LINKOPTS ${ABSL_DEFAULT_LINKOPTS} DEPS - absl::container_common absl::common_policy_traits absl::compare absl::compressed_tuple + absl::config + absl::container_common absl::container_memory absl::cord absl::core_headers @@ -40,7 +41,6 @@ absl_cc_library( absl::strings absl::throw_delegate absl::type_traits - absl::utility ) # Internal-only target, do not depend on directly. diff --git a/absl/container/internal/btree.h b/absl/container/internal/btree.h index 00a9cb13..4ffc44e7 100644 --- a/absl/container/internal/btree.h +++ b/absl/container/internal/btree.h @@ -53,11 +53,11 @@ #include <functional> #include <iterator> #include <limits> -#include <new> #include <string> #include <type_traits> #include <utility> +#include "absl/base/config.h" #include "absl/base/internal/raw_logging.h" #include "absl/base/macros.h" #include "absl/container/internal/common.h" @@ -70,7 +70,6 @@ #include "absl/strings/cord.h" #include "absl/strings/string_view.h" #include "absl/types/compare.h" -#include "absl/utility/utility.h" namespace absl { ABSL_NAMESPACE_BEGIN @@ -475,7 +474,7 @@ struct SearchResult { // useful information. template <typename V> struct SearchResult<V, false> { - SearchResult() {} + SearchResult() = default; explicit SearchResult(V v) : value(v) {} SearchResult(V v, MatchKind /*match*/) : value(v) {} |