summaryrefslogtreecommitdiff
path: root/absl/hash
diff options
context:
space:
mode:
authorGravatar Dmitri Gribenko <dmitrig@google.com>2023-08-11 04:24:13 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-08-11 04:25:21 -0700
commit9d05d379aa1e1b56721d23185f5c8634983f2d56 (patch)
tree906d9cea380fe803d6fe72438486881a15e23544 /absl/hash
parenta2639e312fae461cb9c6845fac3cfcc2b440a909 (diff)
Include what you spell
PiperOrigin-RevId: 555894810 Change-Id: I349c94e7c6e7ba1dbd817aa8e4340c1dada84654
Diffstat (limited to 'absl/hash')
-rw-r--r--absl/hash/BUILD.bazel4
-rw-r--r--absl/hash/CMakeLists.txt14
-rw-r--r--absl/hash/hash_benchmark.cc6
-rw-r--r--absl/hash/hash_test.cc24
4 files changed, 28 insertions, 20 deletions
diff --git a/absl/hash/BUILD.bazel b/absl/hash/BUILD.bazel
index 4346fc49..a520ae62 100644
--- a/absl/hash/BUILD.bazel
+++ b/absl/hash/BUILD.bazel
@@ -85,9 +85,13 @@ cc_test(
"//absl/container:flat_hash_set",
"//absl/container:node_hash_map",
"//absl/container:node_hash_set",
+ "//absl/memory",
"//absl/meta:type_traits",
"//absl/numeric:int128",
"//absl/strings:cord_test_helpers",
+ "//absl/strings:string_view",
+ "//absl/types:optional",
+ "//absl/types:variant",
"@com_google_googletest//:gtest_main",
],
)
diff --git a/absl/hash/CMakeLists.txt b/absl/hash/CMakeLists.txt
index 65fd2a5f..438c1cda 100644
--- a/absl/hash/CMakeLists.txt
+++ b/absl/hash/CMakeLists.txt
@@ -68,18 +68,22 @@ absl_cc_test(
COPTS
${ABSL_TEST_COPTS}
DEPS
+ absl::btree
absl::cord_test_helpers
- absl::hash
- absl::hash_testing
absl::core_headers
- absl::btree
absl::flat_hash_map
absl::flat_hash_set
+ absl::hash
+ absl::hash_testing
+ absl::int128
+ absl::memory
+ absl::meta
absl::node_hash_map
absl::node_hash_set
+ absl::optional
absl::spy_hash_state
- absl::meta
- absl::int128
+ absl::string_view
+ absl::variant
GTest::gmock_main
)
diff --git a/absl/hash/hash_benchmark.cc b/absl/hash/hash_benchmark.cc
index 8712a01c..916fb620 100644
--- a/absl/hash/hash_benchmark.cc
+++ b/absl/hash/hash_benchmark.cc
@@ -12,7 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <algorithm>
+#include <cassert>
+#include <cstddef>
+#include <cstdint>
+#include <cstring>
#include <string>
+#include <tuple>
#include <type_traits>
#include <typeindex>
#include <utility>
diff --git a/absl/hash/hash_test.cc b/absl/hash/hash_test.cc
index a0e2e4a7..111f375b 100644
--- a/absl/hash/hash_test.cc
+++ b/absl/hash/hash_test.cc
@@ -17,42 +17,36 @@
#include <algorithm>
#include <array>
#include <bitset>
+#include <cstddef>
#include <cstdint>
+#include <cstdlib>
#include <cstring>
-#include <deque>
-#include <forward_list>
#include <functional>
#include <initializer_list>
-#include <iterator>
+#include <ios>
#include <limits>
-#include <list>
-#include <map>
#include <memory>
-#include <numeric>
-#include <random>
+#include <ostream>
#include <set>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
-#include <unordered_set>
#include <utility>
#include <vector>
-#include "gmock/gmock.h"
#include "gtest/gtest.h"
-#include "absl/container/btree_map.h"
-#include "absl/container/btree_set.h"
-#include "absl/container/flat_hash_map.h"
+#include "absl/base/config.h"
#include "absl/container/flat_hash_set.h"
-#include "absl/container/node_hash_map.h"
-#include "absl/container/node_hash_set.h"
#include "absl/hash/hash_testing.h"
#include "absl/hash/internal/hash_test.h"
#include "absl/hash/internal/spy_hash_state.h"
+#include "absl/memory/memory.h"
#include "absl/meta/type_traits.h"
-#include "absl/numeric/int128.h"
#include "absl/strings/cord_test_helpers.h"
+#include "absl/strings/string_view.h"
+#include "absl/types/optional.h"
+#include "absl/types/variant.h"
#ifdef ABSL_HAVE_STD_STRING_VIEW
#include <string_view>