From 4b915e70929ca2d6152240facc83d3d38c5d5f28 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 19 Oct 2020 15:25:26 -0700 Subject: Export of internal Abseil changes -- 77c85460dc3c46593b231c5161ac55273bb0c7ef by Abseil Team : Support int128 in SimpleAtoi. PiperOrigin-RevId: 337946262 -- 0be53049ccf8309650e4e22f23b290e5f75ee828 by Gennadiy Rozental : Update build scripts to use --mount instead of --volume to mount the host data into a container. This is somewhat more verbose, but more readable and flexible. More importantly this is what docker documentation is recomending to use now. PiperOrigin-RevId: 337898761 -- 3bc877f1679fdf61ecbf4365287a0403cfc9b53e by Samuel Benzaquen : Add Cord constructor for constinit instances. PiperOrigin-RevId: 337871148 -- 8b87701892b9c325e78ad4e8e4f16b785a744622 by Chris Kennelly : Use the address of kSeed, rather than its value. We initialize kSeed with &kSeed, so these are equivalent, but kSeed requires a load from memory while &kSeed can be formed as a RIP-relative lea. PiperOrigin-RevId: 337868415 GitOrigin-RevId: 77c85460dc3c46593b231c5161ac55273bb0c7ef Change-Id: I3d06c18a123f1be29dad5801e8625952dc41cd95 --- absl/strings/BUILD.bazel | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'absl/strings/BUILD.bazel') diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel index 64a13cef..30a8dd28 100644 --- a/absl/strings/BUILD.bazel +++ b/absl/strings/BUILD.bazel @@ -54,6 +54,7 @@ cc_library( "ascii.h", "charconv.h", "escaping.h", + "internal/string_constant.h", "match.h", "numbers.h", "str_cat.h", @@ -222,6 +223,19 @@ cc_test( ], ) +cc_test( + name = "string_constant_test", + size = "small", + srcs = ["internal/string_constant_test.cc"], + copts = ABSL_TEST_COPTS, + visibility = ["//visibility:private"], + deps = [ + ":strings", + "//absl/meta:type_traits", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "string_view_benchmark", srcs = ["string_view_benchmark.cc"], -- cgit v1.2.3