re2 1.23.0 → 1.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/binding.gyp +3 -2
- package/package.json +5 -5
- package/vendor/abseil-cpp/CMake/AbseilDll.cmake +25 -4
- package/vendor/abseil-cpp/CMake/AbseilHelpers.cmake +6 -1
- package/vendor/abseil-cpp/CMakeLists.txt +2 -2
- package/vendor/abseil-cpp/MODULE.bazel +2 -2
- package/vendor/abseil-cpp/absl/algorithm/BUILD.bazel +0 -1
- package/vendor/abseil-cpp/absl/algorithm/CMakeLists.txt +0 -2
- package/vendor/abseil-cpp/absl/algorithm/container.h +191 -140
- package/vendor/abseil-cpp/absl/algorithm/container_test.cc +818 -0
- package/vendor/abseil-cpp/absl/base/BUILD.bazel +44 -5
- package/vendor/abseil-cpp/absl/base/CMakeLists.txt +42 -3
- package/vendor/abseil-cpp/absl/base/attributes.h +5 -1
- package/vendor/abseil-cpp/absl/base/call_once_test.cc +10 -10
- package/vendor/abseil-cpp/absl/base/casts.cc +61 -0
- package/vendor/abseil-cpp/absl/base/casts.h +128 -2
- package/vendor/abseil-cpp/absl/base/casts_test.cc +151 -0
- package/vendor/abseil-cpp/absl/base/config.h +13 -37
- package/vendor/abseil-cpp/absl/base/internal/dynamic_annotations.h +1 -1
- package/vendor/abseil-cpp/absl/base/internal/iterator_traits.h +4 -0
- package/vendor/abseil-cpp/absl/base/internal/nullability_traits.h +71 -0
- package/vendor/abseil-cpp/absl/base/internal/nullability_traits_test.cc +98 -0
- package/vendor/abseil-cpp/absl/base/internal/raw_logging.cc +3 -4
- package/vendor/abseil-cpp/absl/base/internal/spinlock.cc +13 -7
- package/vendor/abseil-cpp/absl/base/internal/spinlock.h +16 -11
- package/vendor/abseil-cpp/absl/base/internal/strerror_test.cc +2 -1
- package/vendor/abseil-cpp/absl/base/internal/sysinfo.cc +0 -9
- package/vendor/abseil-cpp/absl/base/internal/sysinfo_test.cc +0 -6
- package/vendor/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +1 -1
- package/vendor/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h +1 -1
- package/vendor/abseil-cpp/absl/base/macros.h +40 -17
- package/vendor/abseil-cpp/absl/base/nullability.h +1 -1
- package/vendor/abseil-cpp/absl/base/optimization.h +1 -3
- package/vendor/abseil-cpp/absl/base/options.h +1 -27
- package/vendor/abseil-cpp/absl/base/spinlock_test_common.cc +5 -8
- package/vendor/abseil-cpp/absl/cleanup/cleanup.h +4 -0
- package/vendor/abseil-cpp/absl/container/BUILD.bazel +195 -2
- package/vendor/abseil-cpp/absl/container/CMakeLists.txt +136 -2
- package/vendor/abseil-cpp/absl/container/btree_map.h +56 -6
- package/vendor/abseil-cpp/absl/container/btree_set.h +52 -6
- package/vendor/abseil-cpp/absl/container/btree_test.cc +107 -1
- package/vendor/abseil-cpp/absl/container/chunked_queue.h +755 -0
- package/vendor/abseil-cpp/absl/container/chunked_queue_benchmark.cc +386 -0
- package/vendor/abseil-cpp/absl/container/chunked_queue_test.cc +768 -0
- package/vendor/abseil-cpp/absl/container/fixed_array.h +4 -6
- package/vendor/abseil-cpp/absl/container/flat_hash_map.h +16 -6
- package/vendor/abseil-cpp/absl/container/flat_hash_map_test.cc +1 -2
- package/vendor/abseil-cpp/absl/container/flat_hash_set.h +16 -6
- package/vendor/abseil-cpp/absl/container/flat_hash_set_test.cc +0 -2
- package/vendor/abseil-cpp/absl/container/inlined_vector.h +12 -4
- package/vendor/abseil-cpp/absl/container/inlined_vector_test.cc +21 -0
- package/vendor/abseil-cpp/absl/container/internal/btree_container.h +14 -5
- package/vendor/abseil-cpp/absl/container/internal/chunked_queue.h +173 -0
- package/vendor/abseil-cpp/absl/container/internal/common.h +51 -0
- package/vendor/abseil-cpp/absl/container/internal/container_memory.h +7 -1
- package/vendor/abseil-cpp/absl/container/internal/container_memory_test.cc +11 -0
- package/vendor/abseil-cpp/absl/container/internal/hash_generator_testing.cc +0 -2
- package/vendor/abseil-cpp/absl/container/internal/hash_generator_testing.h +1 -2
- package/vendor/abseil-cpp/absl/container/internal/hash_policy_testing.h +0 -14
- package/vendor/abseil-cpp/absl/container/internal/hashtable_control_bytes.h +11 -8
- package/vendor/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +3 -4
- package/vendor/abseil-cpp/absl/container/internal/hashtablez_sampler.h +23 -6
- package/vendor/abseil-cpp/absl/container/internal/hashtablez_sampler_test.cc +31 -15
- package/vendor/abseil-cpp/absl/container/internal/heterogeneous_lookup_testing.h +80 -0
- package/vendor/abseil-cpp/absl/container/internal/inlined_vector.h +4 -12
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_map.h +35 -10
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set.cc +149 -23
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set.h +120 -126
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set_allocator_test.cc +4 -0
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set_benchmark.cc +8 -0
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set_probe_benchmark.cc +14 -59
- package/vendor/abseil-cpp/absl/container/internal/raw_hash_set_test.cc +111 -22
- package/vendor/abseil-cpp/absl/container/internal/unordered_map_constructor_test.h +53 -112
- package/vendor/abseil-cpp/absl/container/internal/unordered_map_lookup_test.h +10 -15
- package/vendor/abseil-cpp/absl/container/internal/unordered_map_members_test.h +3 -3
- package/vendor/abseil-cpp/absl/container/internal/unordered_map_modifiers_test.h +45 -61
- package/vendor/abseil-cpp/absl/container/internal/unordered_set_constructor_test.h +53 -112
- package/vendor/abseil-cpp/absl/container/internal/unordered_set_lookup_test.h +6 -9
- package/vendor/abseil-cpp/absl/container/internal/unordered_set_members_test.h +3 -3
- package/vendor/abseil-cpp/absl/container/internal/unordered_set_modifiers_test.h +25 -31
- package/vendor/abseil-cpp/absl/container/linked_hash_map.h +666 -0
- package/vendor/abseil-cpp/absl/container/linked_hash_map_benchmark.cc +140 -0
- package/vendor/abseil-cpp/absl/container/linked_hash_map_test.cc +987 -0
- package/vendor/abseil-cpp/absl/container/linked_hash_set.h +527 -0
- package/vendor/abseil-cpp/absl/container/linked_hash_set_benchmark.cc +84 -0
- package/vendor/abseil-cpp/absl/container/linked_hash_set_test.cc +947 -0
- package/vendor/abseil-cpp/absl/container/node_hash_map.h +17 -6
- package/vendor/abseil-cpp/absl/container/node_hash_set.h +16 -5
- package/vendor/abseil-cpp/absl/container/node_hash_set_test.cc +1 -2
- package/vendor/abseil-cpp/absl/copts/GENERATED_AbseilCopts.cmake +79 -0
- package/vendor/abseil-cpp/absl/copts/GENERATED_copts.bzl +79 -0
- package/vendor/abseil-cpp/absl/copts/copts.py +17 -4
- package/vendor/abseil-cpp/absl/crc/internal/crc_x86_arm_combined.cc +67 -13
- package/vendor/abseil-cpp/absl/crc/internal/non_temporal_arm_intrinsics.h +4 -2
- package/vendor/abseil-cpp/absl/debugging/BUILD.bazel +31 -0
- package/vendor/abseil-cpp/absl/debugging/CMakeLists.txt +34 -0
- package/vendor/abseil-cpp/absl/debugging/failure_signal_handler.cc +2 -2
- package/vendor/abseil-cpp/absl/debugging/internal/borrowed_fixup_buffer.cc +118 -0
- package/vendor/abseil-cpp/absl/debugging/internal/borrowed_fixup_buffer.h +71 -0
- package/vendor/abseil-cpp/absl/debugging/internal/borrowed_fixup_buffer_test.cc +97 -0
- package/vendor/abseil-cpp/absl/debugging/internal/demangle.cc +2 -2
- package/vendor/abseil-cpp/absl/debugging/internal/elf_mem_image.h +4 -4
- package/vendor/abseil-cpp/absl/debugging/internal/examine_stack.cc +4 -0
- package/vendor/abseil-cpp/absl/debugging/internal/examine_stack.h +7 -0
- package/vendor/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +1 -1
- package/vendor/abseil-cpp/absl/debugging/internal/stacktrace_emscripten-inl.inc +0 -7
- package/vendor/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +3 -2
- package/vendor/abseil-cpp/absl/debugging/internal/stacktrace_riscv-inl.inc +2 -1
- package/vendor/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +8 -3
- package/vendor/abseil-cpp/absl/debugging/internal/symbolize.h +2 -2
- package/vendor/abseil-cpp/absl/debugging/stacktrace.cc +35 -67
- package/vendor/abseil-cpp/absl/debugging/stacktrace.h +3 -0
- package/vendor/abseil-cpp/absl/debugging/stacktrace_benchmark.cc +24 -1
- package/vendor/abseil-cpp/absl/debugging/stacktrace_test.cc +39 -15
- package/vendor/abseil-cpp/absl/debugging/symbolize_emscripten.inc +4 -17
- package/vendor/abseil-cpp/absl/debugging/symbolize_test.cc +25 -40
- package/vendor/abseil-cpp/absl/debugging/symbolize_win32.inc +2 -4
- package/vendor/abseil-cpp/absl/flags/BUILD.bazel +1 -0
- package/vendor/abseil-cpp/absl/flags/declare.h +9 -0
- package/vendor/abseil-cpp/absl/flags/flag.h +2 -1
- package/vendor/abseil-cpp/absl/flags/internal/commandlineflag.h +1 -1
- package/vendor/abseil-cpp/absl/flags/internal/flag.cc +3 -2
- package/vendor/abseil-cpp/absl/flags/marshalling.cc +1 -16
- package/vendor/abseil-cpp/absl/flags/parse.cc +4 -2
- package/vendor/abseil-cpp/absl/flags/parse_test.cc +1 -1
- package/vendor/abseil-cpp/absl/flags/reflection.cc +4 -3
- package/vendor/abseil-cpp/absl/functional/BUILD.bazel +4 -0
- package/vendor/abseil-cpp/absl/functional/CMakeLists.txt +4 -0
- package/vendor/abseil-cpp/absl/functional/any_invocable.h +3 -1
- package/vendor/abseil-cpp/absl/functional/function_ref.h +125 -20
- package/vendor/abseil-cpp/absl/functional/function_ref_test.cc +122 -9
- package/vendor/abseil-cpp/absl/functional/internal/any_invocable.h +13 -2
- package/vendor/abseil-cpp/absl/functional/internal/function_ref.h +42 -4
- package/vendor/abseil-cpp/absl/hash/hash_benchmark.cc +11 -0
- package/vendor/abseil-cpp/absl/hash/hash_test.cc +5 -2
- package/vendor/abseil-cpp/absl/hash/internal/hash.cc +184 -53
- package/vendor/abseil-cpp/absl/hash/internal/hash.h +116 -10
- package/vendor/abseil-cpp/absl/hash/internal/low_level_hash_test.cc +43 -4
- package/vendor/abseil-cpp/absl/log/BUILD.bazel +2 -0
- package/vendor/abseil-cpp/absl/log/CMakeLists.txt +35 -1
- package/vendor/abseil-cpp/absl/log/check_test_impl.inc +59 -4
- package/vendor/abseil-cpp/absl/log/die_if_null.cc +3 -1
- package/vendor/abseil-cpp/absl/log/die_if_null.h +24 -3
- package/vendor/abseil-cpp/absl/log/internal/BUILD.bazel +31 -1
- package/vendor/abseil-cpp/absl/log/internal/check_impl.h +2 -1
- package/vendor/abseil-cpp/absl/log/internal/check_op.cc +3 -1
- package/vendor/abseil-cpp/absl/log/internal/check_op.h +44 -18
- package/vendor/abseil-cpp/absl/log/internal/conditions.h +38 -35
- package/vendor/abseil-cpp/absl/log/internal/container.h +312 -0
- package/vendor/abseil-cpp/absl/log/internal/container_test.cc +254 -0
- package/vendor/abseil-cpp/absl/log/internal/log_impl.h +108 -110
- package/vendor/abseil-cpp/absl/log/internal/log_message.cc +5 -2
- package/vendor/abseil-cpp/absl/log/internal/log_message.h +5 -1
- package/vendor/abseil-cpp/absl/log/internal/strip.h +30 -31
- package/vendor/abseil-cpp/absl/log/internal/vlog_config.cc +19 -19
- package/vendor/abseil-cpp/absl/log/internal/vlog_config.h +0 -1
- package/vendor/abseil-cpp/absl/log/log.h +2 -2
- package/vendor/abseil-cpp/absl/meta/BUILD.bazel +51 -0
- package/vendor/abseil-cpp/absl/meta/CMakeLists.txt +46 -0
- package/vendor/abseil-cpp/absl/meta/internal/constexpr_testing.h +73 -0
- package/vendor/abseil-cpp/absl/meta/internal/constexpr_testing_test.cc +40 -0
- package/vendor/abseil-cpp/absl/meta/internal/requires.h +67 -0
- package/vendor/abseil-cpp/absl/meta/internal/requires_test.cc +66 -0
- package/vendor/abseil-cpp/absl/meta/type_traits.h +42 -1
- package/vendor/abseil-cpp/absl/meta/type_traits_test.cc +14 -0
- package/vendor/abseil-cpp/absl/numeric/int128.h +41 -21
- package/vendor/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +16 -22
- package/vendor/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +5 -7
- package/vendor/abseil-cpp/absl/numeric/int128_test.cc +52 -5
- package/vendor/abseil-cpp/absl/profiling/BUILD.bazel +1 -0
- package/vendor/abseil-cpp/absl/profiling/CMakeLists.txt +1 -0
- package/vendor/abseil-cpp/absl/profiling/hashtable.cc +18 -7
- package/vendor/abseil-cpp/absl/profiling/internal/profile_builder.cc +1 -0
- package/vendor/abseil-cpp/absl/random/internal/fastmath_test.cc +3 -5
- package/vendor/abseil-cpp/absl/random/internal/platform.h +0 -13
- package/vendor/abseil-cpp/absl/random/internal/randen_engine_test.cc +0 -1
- package/vendor/abseil-cpp/absl/random/internal/seed_material.cc +1 -27
- package/vendor/abseil-cpp/absl/status/BUILD.bazel +17 -0
- package/vendor/abseil-cpp/absl/status/CMakeLists.txt +16 -0
- package/vendor/abseil-cpp/absl/status/internal/status_internal.h +4 -2
- package/vendor/abseil-cpp/absl/status/internal/status_matchers.h +2 -2
- package/vendor/abseil-cpp/absl/status/internal/statusor_internal.h +2 -1
- package/vendor/abseil-cpp/absl/status/status.cc +4 -0
- package/vendor/abseil-cpp/absl/status/status.h +5 -0
- package/vendor/abseil-cpp/absl/status/status_matchers.h +48 -0
- package/vendor/abseil-cpp/absl/status/status_matchers_test.cc +27 -0
- package/vendor/abseil-cpp/absl/status/status_test.cc +1 -0
- package/vendor/abseil-cpp/absl/status/statusor.h +1 -1
- package/vendor/abseil-cpp/absl/strings/BUILD.bazel +101 -21
- package/vendor/abseil-cpp/absl/strings/CMakeLists.txt +99 -5
- package/vendor/abseil-cpp/absl/strings/ascii.h +9 -4
- package/vendor/abseil-cpp/absl/strings/cord.cc +15 -10
- package/vendor/abseil-cpp/absl/strings/cord.h +1 -1
- package/vendor/abseil-cpp/absl/strings/escaping.cc +126 -94
- package/vendor/abseil-cpp/absl/strings/internal/append_and_overwrite.h +93 -0
- package/vendor/abseil-cpp/absl/strings/internal/append_and_overwrite_test.cc +95 -0
- package/vendor/abseil-cpp/absl/strings/internal/cord_internal.h +2 -0
- package/vendor/abseil-cpp/absl/strings/internal/cord_rep_btree_test.cc +8 -8
- package/vendor/abseil-cpp/absl/strings/internal/cordz_info.cc +24 -18
- package/vendor/abseil-cpp/absl/strings/internal/cordz_info.h +10 -16
- package/vendor/abseil-cpp/absl/strings/internal/escaping.h +9 -7
- package/vendor/abseil-cpp/absl/strings/internal/generic_printer.cc +107 -0
- package/vendor/abseil-cpp/absl/strings/internal/generic_printer.h +115 -0
- package/vendor/abseil-cpp/absl/strings/internal/generic_printer_internal.h +423 -0
- package/vendor/abseil-cpp/absl/strings/internal/generic_printer_test.cc +685 -0
- package/vendor/abseil-cpp/absl/strings/internal/resize_uninitialized.h +0 -12
- package/vendor/abseil-cpp/absl/strings/internal/str_format/checker.h +2 -4
- package/vendor/abseil-cpp/absl/strings/internal/str_format/convert_test.cc +21 -7
- package/vendor/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +495 -8
- package/vendor/abseil-cpp/absl/strings/internal/str_join_internal.h +18 -15
- package/vendor/abseil-cpp/absl/strings/numbers.cc +71 -8
- package/vendor/abseil-cpp/absl/strings/numbers.h +25 -12
- package/vendor/abseil-cpp/absl/strings/numbers_test.cc +70 -0
- package/vendor/abseil-cpp/absl/strings/resize_and_overwrite.h +194 -0
- package/vendor/abseil-cpp/absl/strings/resize_and_overwrite_test.cc +154 -0
- package/vendor/abseil-cpp/absl/strings/str_cat.cc +96 -91
- package/vendor/abseil-cpp/absl/strings/str_cat.h +17 -12
- package/vendor/abseil-cpp/absl/strings/str_format_test.cc +4 -4
- package/vendor/abseil-cpp/absl/strings/str_split.h +1 -1
- package/vendor/abseil-cpp/absl/strings/str_split_test.cc +1 -1
- package/vendor/abseil-cpp/absl/strings/string_view.h +8 -718
- package/vendor/abseil-cpp/absl/strings/string_view_test.cc +1 -1265
- package/vendor/abseil-cpp/absl/strings/substitute.cc +24 -24
- package/vendor/abseil-cpp/absl/synchronization/BUILD.bazel +2 -3
- package/vendor/abseil-cpp/absl/synchronization/CMakeLists.txt +1 -0
- package/vendor/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +2 -2
- package/vendor/abseil-cpp/absl/synchronization/internal/kernel_timeout_test.cc +15 -5
- package/vendor/abseil-cpp/absl/synchronization/mutex.cc +2 -1
- package/vendor/abseil-cpp/absl/synchronization/mutex.h +47 -23
- package/vendor/abseil-cpp/absl/synchronization/notification.h +1 -1
- package/vendor/abseil-cpp/absl/time/CMakeLists.txt +2 -0
- package/vendor/abseil-cpp/absl/time/civil_time_benchmark.cc +1 -2
- package/vendor/abseil-cpp/absl/time/civil_time_test.cc +58 -103
- package/vendor/abseil-cpp/absl/time/clock.cc +18 -16
- package/vendor/abseil-cpp/absl/time/clock_test.cc +2 -2
- package/vendor/abseil-cpp/absl/time/duration_benchmark.cc +144 -0
- package/vendor/abseil-cpp/absl/time/duration_test.cc +26 -29
- package/vendor/abseil-cpp/absl/time/internal/cctz/BUILD.bazel +7 -1
- package/vendor/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +4 -2
- package/vendor/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +6 -103
- package/vendor/abseil-cpp/absl/time/internal/cctz/src/time_zone_name_win.cc +186 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/src/time_zone_name_win.h +37 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/version +1 -1
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Ensenada +0 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Santa_Isabel +0 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/America/Tijuana +0 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/Mexico/BajaNorte +0 -0
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/iso3166.tab +9 -9
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/zone1970.tab +12 -12
- package/vendor/abseil-cpp/absl/time/internal/cctz/testdata/zoneinfo/zonenow.tab +47 -47
- package/vendor/abseil-cpp/absl/time/time.cc +4 -4
- package/vendor/abseil-cpp/absl/time/time.h +10 -10
- package/vendor/abseil-cpp/absl/time/time_test.cc +1 -0
- package/vendor/abseil-cpp/absl/types/compare.h +62 -61
- package/vendor/abseil-cpp/absl/types/compare_test.cc +3 -3
- package/vendor/abseil-cpp/absl/types/internal/span.h +1 -0
- package/vendor/abseil-cpp/absl/types/optional.h +2 -2
- package/vendor/abseil-cpp/absl/types/span.h +10 -2
- package/vendor/abseil-cpp/absl/utility/utility.h +13 -0
- package/vendor/abseil-cpp/ci/absl_alternate_options.h +0 -1
- package/vendor/abseil-cpp/ci/cmake_common.sh +1 -1
- package/vendor/abseil-cpp/ci/cmake_install_test.sh +6 -0
- package/vendor/abseil-cpp/ci/linux_arm_clang-latest_libcxx_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_clang-latest_libcxx_asan_bazel.sh +2 -0
- package/vendor/abseil-cpp/ci/linux_clang-latest_libcxx_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_clang-latest_libcxx_tsan_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_clang-latest_libstdcxx_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_gcc-floor_libstdcxx_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_gcc-latest_libstdcxx_bazel.sh +1 -0
- package/vendor/abseil-cpp/ci/linux_gcc-latest_libstdcxx_cmake.sh +6 -0
- package/vendor/abseil-cpp/ci/linux_gcc_alpine_cmake.sh +6 -0
- package/vendor/abseil-cpp/ci/macos_xcode_bazel.sh +3 -2
- package/vendor/abseil-cpp/ci/macos_xcode_cmake.sh +5 -0
- package/vendor/abseil-cpp/ci/windows_clangcl_bazel.bat +1 -0
- package/vendor/abseil-cpp/ci/windows_msvc_bazel.bat +1 -0
- package/vendor/abseil-cpp/ci/windows_msvc_cmake.bat +6 -1
- package/vendor/abseil-cpp/absl/base/internal/identity.h +0 -39
- package/vendor/abseil-cpp/absl/strings/string_view.cc +0 -257
- package/vendor/abseil-cpp/absl/strings/string_view_benchmark.cc +0 -380
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
+
// SKIP_ABSL_INLINE_NAMESPACE_CHECK
|
|
16
|
+
|
|
15
17
|
#ifndef ABSL_LOG_INTERNAL_LOG_IMPL_H_
|
|
16
18
|
#define ABSL_LOG_INTERNAL_LOG_IMPL_H_
|
|
17
19
|
|
|
@@ -23,260 +25,256 @@
|
|
|
23
25
|
// ABSL_LOG()
|
|
24
26
|
#define ABSL_LOG_INTERNAL_LOG_IMPL(severity) \
|
|
25
27
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
|
|
26
|
-
|
|
28
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
27
29
|
|
|
28
30
|
// ABSL_PLOG()
|
|
29
|
-
#define ABSL_LOG_INTERNAL_PLOG_IMPL(severity)
|
|
30
|
-
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true)
|
|
31
|
-
|
|
31
|
+
#define ABSL_LOG_INTERNAL_PLOG_IMPL(severity) \
|
|
32
|
+
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
|
|
33
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
32
34
|
.WithPerror()
|
|
33
35
|
|
|
34
36
|
// ABSL_DLOG()
|
|
35
37
|
#ifndef NDEBUG
|
|
36
38
|
#define ABSL_LOG_INTERNAL_DLOG_IMPL(severity) \
|
|
37
39
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, true) \
|
|
38
|
-
|
|
40
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
39
41
|
#else
|
|
40
42
|
#define ABSL_LOG_INTERNAL_DLOG_IMPL(severity) \
|
|
41
43
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, false) \
|
|
42
|
-
|
|
44
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
43
45
|
#endif
|
|
44
46
|
|
|
45
47
|
// The `switch` ensures that this expansion is the beginning of a statement (as
|
|
46
48
|
// opposed to an expression). The use of both `case 0` and `default` is to
|
|
47
49
|
// suppress a compiler warning.
|
|
48
|
-
#define ABSL_LOG_INTERNAL_VLOG_IMPL(verbose_level)
|
|
49
|
-
switch (const int
|
|
50
|
-
case 0:
|
|
51
|
-
default:
|
|
52
|
-
ABSL_LOG_INTERNAL_LOG_IF_IMPL(
|
|
53
|
-
_INFO, ABSL_VLOG_IS_ON(
|
|
54
|
-
.WithVerbosity(
|
|
50
|
+
#define ABSL_LOG_INTERNAL_VLOG_IMPL(verbose_level) \
|
|
51
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
52
|
+
case 0: \
|
|
53
|
+
default: \
|
|
54
|
+
ABSL_LOG_INTERNAL_LOG_IF_IMPL( \
|
|
55
|
+
_INFO, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
56
|
+
.WithVerbosity(absl_log_internal_verbose_level)
|
|
55
57
|
|
|
56
58
|
#ifndef NDEBUG
|
|
57
|
-
#define ABSL_LOG_INTERNAL_DVLOG_IMPL(verbose_level)
|
|
58
|
-
switch (const int
|
|
59
|
-
case 0:
|
|
60
|
-
default:
|
|
61
|
-
ABSL_LOG_INTERNAL_DLOG_IF_IMPL(
|
|
62
|
-
_INFO, ABSL_VLOG_IS_ON(
|
|
63
|
-
.WithVerbosity(
|
|
59
|
+
#define ABSL_LOG_INTERNAL_DVLOG_IMPL(verbose_level) \
|
|
60
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
61
|
+
case 0: \
|
|
62
|
+
default: \
|
|
63
|
+
ABSL_LOG_INTERNAL_DLOG_IF_IMPL( \
|
|
64
|
+
_INFO, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
65
|
+
.WithVerbosity(absl_log_internal_verbose_level)
|
|
64
66
|
#else
|
|
65
|
-
#define ABSL_LOG_INTERNAL_DVLOG_IMPL(verbose_level)
|
|
66
|
-
switch (const int
|
|
67
|
-
case 0:
|
|
68
|
-
default:
|
|
69
|
-
ABSL_LOG_INTERNAL_DLOG_IF_IMPL(
|
|
70
|
-
_INFO, false && ABSL_VLOG_IS_ON(
|
|
71
|
-
.WithVerbosity(
|
|
67
|
+
#define ABSL_LOG_INTERNAL_DVLOG_IMPL(verbose_level) \
|
|
68
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
69
|
+
case 0: \
|
|
70
|
+
default: \
|
|
71
|
+
ABSL_LOG_INTERNAL_DLOG_IF_IMPL( \
|
|
72
|
+
_INFO, false && ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
73
|
+
.WithVerbosity(absl_log_internal_verbose_level)
|
|
72
74
|
#endif
|
|
73
75
|
|
|
74
76
|
#define ABSL_LOG_INTERNAL_LOG_IF_IMPL(severity, condition) \
|
|
75
77
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, condition) \
|
|
76
|
-
|
|
78
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
77
79
|
#define ABSL_LOG_INTERNAL_PLOG_IF_IMPL(severity, condition) \
|
|
78
80
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, condition) \
|
|
79
|
-
|
|
81
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
80
82
|
.WithPerror()
|
|
81
83
|
|
|
82
84
|
#ifndef NDEBUG
|
|
83
85
|
#define ABSL_LOG_INTERNAL_DLOG_IF_IMPL(severity, condition) \
|
|
84
86
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, condition) \
|
|
85
|
-
|
|
87
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
86
88
|
#else
|
|
87
89
|
#define ABSL_LOG_INTERNAL_DLOG_IF_IMPL(severity, condition) \
|
|
88
90
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATELESS, false && (condition)) \
|
|
89
|
-
|
|
91
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
90
92
|
#endif
|
|
91
93
|
|
|
92
94
|
// ABSL_LOG_EVERY_N
|
|
93
95
|
#define ABSL_LOG_INTERNAL_LOG_EVERY_N_IMPL(severity, n) \
|
|
94
96
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryN, n) \
|
|
95
|
-
|
|
97
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
96
98
|
|
|
97
99
|
// ABSL_LOG_FIRST_N
|
|
98
100
|
#define ABSL_LOG_INTERNAL_LOG_FIRST_N_IMPL(severity, n) \
|
|
99
101
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(FirstN, n) \
|
|
100
|
-
|
|
102
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
101
103
|
|
|
102
104
|
// ABSL_LOG_EVERY_POW_2
|
|
103
105
|
#define ABSL_LOG_INTERNAL_LOG_EVERY_POW_2_IMPL(severity) \
|
|
104
106
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryPow2) \
|
|
105
|
-
|
|
107
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
106
108
|
|
|
107
109
|
// ABSL_LOG_EVERY_N_SEC
|
|
108
110
|
#define ABSL_LOG_INTERNAL_LOG_EVERY_N_SEC_IMPL(severity, n_seconds) \
|
|
109
111
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryNSec, n_seconds) \
|
|
110
|
-
|
|
112
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
111
113
|
|
|
112
114
|
#define ABSL_LOG_INTERNAL_PLOG_EVERY_N_IMPL(severity, n) \
|
|
113
115
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryN, n) \
|
|
114
|
-
|
|
116
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
115
117
|
.WithPerror()
|
|
116
118
|
|
|
117
119
|
#define ABSL_LOG_INTERNAL_PLOG_FIRST_N_IMPL(severity, n) \
|
|
118
120
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(FirstN, n) \
|
|
119
|
-
|
|
121
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
120
122
|
.WithPerror()
|
|
121
123
|
|
|
122
124
|
#define ABSL_LOG_INTERNAL_PLOG_EVERY_POW_2_IMPL(severity) \
|
|
123
125
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryPow2) \
|
|
124
|
-
|
|
126
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
125
127
|
.WithPerror()
|
|
126
128
|
|
|
127
129
|
#define ABSL_LOG_INTERNAL_PLOG_EVERY_N_SEC_IMPL(severity, n_seconds) \
|
|
128
130
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, true)(EveryNSec, n_seconds) \
|
|
129
|
-
|
|
131
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
130
132
|
.WithPerror()
|
|
131
133
|
|
|
132
134
|
#ifndef NDEBUG
|
|
133
135
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_N_IMPL(severity, n) \
|
|
134
136
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, true) \
|
|
135
|
-
(EveryN, n)
|
|
137
|
+
(EveryN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
136
138
|
|
|
137
139
|
#define ABSL_LOG_INTERNAL_DLOG_FIRST_N_IMPL(severity, n) \
|
|
138
140
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, true) \
|
|
139
|
-
(FirstN, n)
|
|
141
|
+
(FirstN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
140
142
|
|
|
141
143
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_POW_2_IMPL(severity) \
|
|
142
144
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, true) \
|
|
143
|
-
(EveryPow2)
|
|
145
|
+
(EveryPow2) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
144
146
|
|
|
145
147
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_N_SEC_IMPL(severity, n_seconds) \
|
|
146
148
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, true) \
|
|
147
|
-
(EveryNSec, n_seconds)
|
|
149
|
+
(EveryNSec, n_seconds) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
148
150
|
|
|
149
151
|
#else // def NDEBUG
|
|
150
152
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_N_IMPL(severity, n) \
|
|
151
153
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, false) \
|
|
152
|
-
(EveryN, n)
|
|
154
|
+
(EveryN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
153
155
|
|
|
154
156
|
#define ABSL_LOG_INTERNAL_DLOG_FIRST_N_IMPL(severity, n) \
|
|
155
157
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, false) \
|
|
156
|
-
(FirstN, n)
|
|
158
|
+
(FirstN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
157
159
|
|
|
158
160
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_POW_2_IMPL(severity) \
|
|
159
161
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, false) \
|
|
160
|
-
(EveryPow2)
|
|
162
|
+
(EveryPow2) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
161
163
|
|
|
162
164
|
#define ABSL_LOG_INTERNAL_DLOG_EVERY_N_SEC_IMPL(severity, n_seconds) \
|
|
163
165
|
ABSL_LOG_INTERNAL_CONDITION_INFO(STATEFUL, false) \
|
|
164
|
-
(EveryNSec, n_seconds)
|
|
166
|
+
(EveryNSec, n_seconds) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
165
167
|
#endif // def NDEBUG
|
|
166
168
|
|
|
167
|
-
#define ABSL_LOG_INTERNAL_VLOG_EVERY_N_IMPL(verbose_level, n)
|
|
168
|
-
switch (const int
|
|
169
|
-
case 0:
|
|
170
|
-
default:
|
|
171
|
-
ABSL_LOG_INTERNAL_CONDITION_INFO(
|
|
172
|
-
STATEFUL, ABSL_VLOG_IS_ON(
|
|
173
|
-
(EveryN, n)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
#define ABSL_LOG_INTERNAL_VLOG_FIRST_N_IMPL(verbose_level, n)
|
|
177
|
-
switch (const int
|
|
178
|
-
case 0:
|
|
179
|
-
default:
|
|
180
|
-
ABSL_LOG_INTERNAL_CONDITION_INFO(
|
|
181
|
-
STATEFUL, ABSL_VLOG_IS_ON(
|
|
182
|
-
(FirstN, n)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
#define ABSL_LOG_INTERNAL_VLOG_EVERY_POW_2_IMPL(verbose_level)
|
|
186
|
-
switch (const int
|
|
187
|
-
case 0:
|
|
188
|
-
default:
|
|
189
|
-
ABSL_LOG_INTERNAL_CONDITION_INFO(
|
|
190
|
-
STATEFUL, ABSL_VLOG_IS_ON(
|
|
191
|
-
(EveryPow2)
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
#define ABSL_LOG_INTERNAL_VLOG_EVERY_N_SEC_IMPL(verbose_level, n_seconds)
|
|
195
|
-
switch (const int
|
|
196
|
-
case 0:
|
|
197
|
-
default:
|
|
198
|
-
ABSL_LOG_INTERNAL_CONDITION_INFO(
|
|
199
|
-
STATEFUL, ABSL_VLOG_IS_ON(
|
|
200
|
-
(EveryNSec, n_seconds)
|
|
201
|
-
.WithVerbosity(
|
|
169
|
+
#define ABSL_LOG_INTERNAL_VLOG_EVERY_N_IMPL(verbose_level, n) \
|
|
170
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
171
|
+
case 0: \
|
|
172
|
+
default: \
|
|
173
|
+
ABSL_LOG_INTERNAL_CONDITION_INFO( \
|
|
174
|
+
STATEFUL, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
175
|
+
(EveryN, n) ABSL_LOG_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
|
|
176
|
+
absl_log_internal_verbose_level)
|
|
177
|
+
|
|
178
|
+
#define ABSL_LOG_INTERNAL_VLOG_FIRST_N_IMPL(verbose_level, n) \
|
|
179
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
180
|
+
case 0: \
|
|
181
|
+
default: \
|
|
182
|
+
ABSL_LOG_INTERNAL_CONDITION_INFO( \
|
|
183
|
+
STATEFUL, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
184
|
+
(FirstN, n) ABSL_LOG_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
|
|
185
|
+
absl_log_internal_verbose_level)
|
|
186
|
+
|
|
187
|
+
#define ABSL_LOG_INTERNAL_VLOG_EVERY_POW_2_IMPL(verbose_level) \
|
|
188
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
189
|
+
case 0: \
|
|
190
|
+
default: \
|
|
191
|
+
ABSL_LOG_INTERNAL_CONDITION_INFO( \
|
|
192
|
+
STATEFUL, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
193
|
+
(EveryPow2) ABSL_LOG_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
|
|
194
|
+
absl_log_internal_verbose_level)
|
|
195
|
+
|
|
196
|
+
#define ABSL_LOG_INTERNAL_VLOG_EVERY_N_SEC_IMPL(verbose_level, n_seconds) \
|
|
197
|
+
switch (const int absl_log_internal_verbose_level = (verbose_level)) \
|
|
198
|
+
case 0: \
|
|
199
|
+
default: \
|
|
200
|
+
ABSL_LOG_INTERNAL_CONDITION_INFO( \
|
|
201
|
+
STATEFUL, ABSL_VLOG_IS_ON(absl_log_internal_verbose_level)) \
|
|
202
|
+
(EveryNSec, n_seconds) ABSL_LOG_INTERNAL_LOG_INFO.InternalStream() \
|
|
203
|
+
.WithVerbosity(absl_log_internal_verbose_level)
|
|
202
204
|
|
|
203
205
|
#define ABSL_LOG_INTERNAL_LOG_IF_EVERY_N_IMPL(severity, condition, n) \
|
|
204
206
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryN, n) \
|
|
205
|
-
|
|
207
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
206
208
|
|
|
207
209
|
#define ABSL_LOG_INTERNAL_LOG_IF_FIRST_N_IMPL(severity, condition, n) \
|
|
208
210
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(FirstN, n) \
|
|
209
|
-
|
|
211
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
210
212
|
|
|
211
213
|
#define ABSL_LOG_INTERNAL_LOG_IF_EVERY_POW_2_IMPL(severity, condition) \
|
|
212
214
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryPow2) \
|
|
213
|
-
|
|
215
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
214
216
|
|
|
215
|
-
#define ABSL_LOG_INTERNAL_LOG_IF_EVERY_N_SEC_IMPL(severity, condition,
|
|
216
|
-
n_seconds)
|
|
217
|
-
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(
|
|
218
|
-
|
|
219
|
-
ABSL_LOGGING_INTERNAL_LOG##severity.InternalStream()
|
|
217
|
+
#define ABSL_LOG_INTERNAL_LOG_IF_EVERY_N_SEC_IMPL(severity, condition, \
|
|
218
|
+
n_seconds) \
|
|
219
|
+
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)( \
|
|
220
|
+
EveryNSec, n_seconds) ABSL_LOG_INTERNAL_LOG##severity.InternalStream()
|
|
220
221
|
|
|
221
222
|
#define ABSL_LOG_INTERNAL_PLOG_IF_EVERY_N_IMPL(severity, condition, n) \
|
|
222
223
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryN, n) \
|
|
223
|
-
|
|
224
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
224
225
|
.WithPerror()
|
|
225
226
|
|
|
226
227
|
#define ABSL_LOG_INTERNAL_PLOG_IF_FIRST_N_IMPL(severity, condition, n) \
|
|
227
228
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(FirstN, n) \
|
|
228
|
-
|
|
229
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
229
230
|
.WithPerror()
|
|
230
231
|
|
|
231
232
|
#define ABSL_LOG_INTERNAL_PLOG_IF_EVERY_POW_2_IMPL(severity, condition) \
|
|
232
233
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryPow2) \
|
|
233
|
-
|
|
234
|
+
ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
234
235
|
.WithPerror()
|
|
235
236
|
|
|
236
|
-
#define ABSL_LOG_INTERNAL_PLOG_IF_EVERY_N_SEC_IMPL(severity, condition,
|
|
237
|
-
n_seconds)
|
|
238
|
-
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
.WithPerror()
|
|
237
|
+
#define ABSL_LOG_INTERNAL_PLOG_IF_EVERY_N_SEC_IMPL(severity, condition, \
|
|
238
|
+
n_seconds) \
|
|
239
|
+
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)( \
|
|
240
|
+
EveryNSec, n_seconds) ABSL_LOG_INTERNAL_LOG##severity.InternalStream() \
|
|
241
|
+
.WithPerror()
|
|
242
242
|
|
|
243
243
|
#ifndef NDEBUG
|
|
244
244
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_N_IMPL(severity, condition, n) \
|
|
245
245
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryN, n) \
|
|
246
|
-
|
|
246
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
247
247
|
|
|
248
248
|
#define ABSL_LOG_INTERNAL_DLOG_IF_FIRST_N_IMPL(severity, condition, n) \
|
|
249
249
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(FirstN, n) \
|
|
250
|
-
|
|
250
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
251
251
|
|
|
252
252
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_POW_2_IMPL(severity, condition) \
|
|
253
253
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(EveryPow2) \
|
|
254
|
-
|
|
254
|
+
ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
255
255
|
|
|
256
256
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_N_SEC_IMPL(severity, condition, \
|
|
257
257
|
n_seconds) \
|
|
258
|
-
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)(
|
|
259
|
-
|
|
260
|
-
ABSL_LOGGING_INTERNAL_DLOG##severity.InternalStream()
|
|
258
|
+
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, condition)( \
|
|
259
|
+
EveryNSec, n_seconds) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
261
260
|
|
|
262
261
|
#else // def NDEBUG
|
|
263
262
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_N_IMPL(severity, condition, n) \
|
|
264
263
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, false && (condition))( \
|
|
265
|
-
EveryN, n)
|
|
264
|
+
EveryN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
266
265
|
|
|
267
266
|
#define ABSL_LOG_INTERNAL_DLOG_IF_FIRST_N_IMPL(severity, condition, n) \
|
|
268
267
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, false && (condition))( \
|
|
269
|
-
FirstN, n)
|
|
268
|
+
FirstN, n) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
270
269
|
|
|
271
270
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_POW_2_IMPL(severity, condition) \
|
|
272
271
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, false && (condition))( \
|
|
273
|
-
EveryPow2)
|
|
272
|
+
EveryPow2) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
274
273
|
|
|
275
274
|
#define ABSL_LOG_INTERNAL_DLOG_IF_EVERY_N_SEC_IMPL(severity, condition, \
|
|
276
275
|
n_seconds) \
|
|
277
276
|
ABSL_LOG_INTERNAL_CONDITION##severity(STATEFUL, false && (condition))( \
|
|
278
|
-
EveryNSec, n_seconds)
|
|
279
|
-
ABSL_LOGGING_INTERNAL_DLOG##severity.InternalStream()
|
|
277
|
+
EveryNSec, n_seconds) ABSL_LOG_INTERNAL_DLOG##severity.InternalStream()
|
|
280
278
|
#endif // def NDEBUG
|
|
281
279
|
|
|
282
280
|
#endif // ABSL_LOG_INTERNAL_LOG_IMPL_H_
|
|
@@ -150,7 +150,7 @@ void WriteToStream(const char* data, void* os) {
|
|
|
150
150
|
} // namespace
|
|
151
151
|
|
|
152
152
|
struct LogMessage::LogMessageData final {
|
|
153
|
-
LogMessageData(
|
|
153
|
+
LogMessageData(absl::string_view file, int line,
|
|
154
154
|
absl::LogSeverity severity, absl::Time timestamp);
|
|
155
155
|
LogMessageData(const LogMessageData&) = delete;
|
|
156
156
|
LogMessageData& operator=(const LogMessageData&) = delete;
|
|
@@ -202,7 +202,7 @@ struct LogMessage::LogMessageData final {
|
|
|
202
202
|
void FinalizeEncodingAndFormat();
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
LogMessage::LogMessageData::LogMessageData(
|
|
205
|
+
LogMessage::LogMessageData::LogMessageData(absl::string_view file,
|
|
206
206
|
int line, absl::LogSeverity severity,
|
|
207
207
|
absl::Time timestamp)
|
|
208
208
|
: extra_sinks_only(false), manipulated(nullptr) {
|
|
@@ -275,6 +275,9 @@ void LogMessage::LogMessageData::FinalizeEncodingAndFormat() {
|
|
|
275
275
|
|
|
276
276
|
LogMessage::LogMessage(const char* absl_nonnull file, int line,
|
|
277
277
|
absl::LogSeverity severity)
|
|
278
|
+
: LogMessage(absl::string_view(file), line, severity) {}
|
|
279
|
+
LogMessage::LogMessage(absl::string_view file, int line,
|
|
280
|
+
absl::LogSeverity severity)
|
|
278
281
|
: data_(absl::make_unique<LogMessageData>(file, line, severity,
|
|
279
282
|
absl::Now())) {
|
|
280
283
|
data_->first_fatal = false;
|
|
@@ -64,9 +64,13 @@ class LogMessage {
|
|
|
64
64
|
struct WarningTag {};
|
|
65
65
|
struct ErrorTag {};
|
|
66
66
|
|
|
67
|
-
// Used for `LOG`.
|
|
67
|
+
// Used for `LOG`. Taking `const char *` instead of `string_view` keeps
|
|
68
|
+
// callsites a little bit smaller at the cost of doing `strlen` at runtime.
|
|
68
69
|
LogMessage(const char* absl_nonnull file, int line,
|
|
69
70
|
absl::LogSeverity severity) ABSL_ATTRIBUTE_COLD;
|
|
71
|
+
// Used for FFI integrations that don't have a NUL-terminated string.
|
|
72
|
+
LogMessage(absl::string_view file, int line,
|
|
73
|
+
absl::LogSeverity severity) ABSL_ATTRIBUTE_COLD;
|
|
70
74
|
// These constructors are slightly smaller/faster to call; the severity is
|
|
71
75
|
// curried into the function pointer.
|
|
72
76
|
LogMessage(const char* absl_nonnull file, int line,
|
|
@@ -26,57 +26,56 @@
|
|
|
26
26
|
#include "absl/log/internal/log_message.h"
|
|
27
27
|
#include "absl/log/internal/nullstream.h"
|
|
28
28
|
|
|
29
|
-
// `
|
|
29
|
+
// `ABSL_LOG_INTERNAL_LOG_*` evaluates to a temporary `LogMessage` object or
|
|
30
30
|
// to a related object with a compatible API but different behavior. This set
|
|
31
31
|
// of defines comes in three flavors: vanilla, plus two variants that strip some
|
|
32
32
|
// logging in subtly different ways for subtly different reasons (see below).
|
|
33
33
|
#if defined(STRIP_LOG) && STRIP_LOG
|
|
34
34
|
|
|
35
|
-
#define
|
|
36
|
-
#define
|
|
37
|
-
#define
|
|
38
|
-
#define
|
|
39
|
-
#define
|
|
40
|
-
#define
|
|
35
|
+
#define ABSL_LOG_INTERNAL_LOG_INFO ::absl::log_internal::NullStream()
|
|
36
|
+
#define ABSL_LOG_INTERNAL_LOG_WARNING ::absl::log_internal::NullStream()
|
|
37
|
+
#define ABSL_LOG_INTERNAL_LOG_ERROR ::absl::log_internal::NullStream()
|
|
38
|
+
#define ABSL_LOG_INTERNAL_LOG_FATAL ::absl::log_internal::NullStreamFatal()
|
|
39
|
+
#define ABSL_LOG_INTERNAL_LOG_QFATAL ::absl::log_internal::NullStreamFatal()
|
|
40
|
+
#define ABSL_LOG_INTERNAL_LOG_DFATAL \
|
|
41
41
|
::absl::log_internal::NullStreamMaybeFatal(::absl::kLogDebugFatal)
|
|
42
|
-
#define
|
|
42
|
+
#define ABSL_LOG_INTERNAL_LOG_LEVEL(severity) \
|
|
43
43
|
::absl::log_internal::NullStreamMaybeFatal(absl_log_internal_severity)
|
|
44
44
|
|
|
45
45
|
// Fatal `DLOG`s expand a little differently to avoid being `[[noreturn]]`.
|
|
46
|
-
#define
|
|
46
|
+
#define ABSL_LOG_INTERNAL_DLOG_FATAL \
|
|
47
47
|
::absl::log_internal::NullStreamMaybeFatal(::absl::LogSeverity::kFatal)
|
|
48
|
-
#define
|
|
48
|
+
#define ABSL_LOG_INTERNAL_DLOG_QFATAL \
|
|
49
49
|
::absl::log_internal::NullStreamMaybeFatal(::absl::LogSeverity::kFatal)
|
|
50
50
|
|
|
51
|
-
#define ABSL_LOG_INTERNAL_CHECK(failure_message)
|
|
52
|
-
#define ABSL_LOG_INTERNAL_QCHECK(failure_message)
|
|
53
|
-
ABSL_LOGGING_INTERNAL_LOG_QFATAL
|
|
51
|
+
#define ABSL_LOG_INTERNAL_CHECK(failure_message) ABSL_LOG_INTERNAL_LOG_FATAL
|
|
52
|
+
#define ABSL_LOG_INTERNAL_QCHECK(failure_message) ABSL_LOG_INTERNAL_LOG_QFATAL
|
|
54
53
|
|
|
55
54
|
#else // !defined(STRIP_LOG) || !STRIP_LOG
|
|
56
55
|
|
|
57
|
-
#define
|
|
58
|
-
::absl::log_internal::LogMessage(
|
|
56
|
+
#define ABSL_LOG_INTERNAL_LOG_INFO \
|
|
57
|
+
::absl::log_internal::LogMessage( \
|
|
59
58
|
__FILE__, __LINE__, ::absl::log_internal::LogMessage::InfoTag{})
|
|
60
|
-
#define
|
|
61
|
-
::absl::log_internal::LogMessage(
|
|
59
|
+
#define ABSL_LOG_INTERNAL_LOG_WARNING \
|
|
60
|
+
::absl::log_internal::LogMessage( \
|
|
62
61
|
__FILE__, __LINE__, ::absl::log_internal::LogMessage::WarningTag{})
|
|
63
|
-
#define
|
|
64
|
-
::absl::log_internal::LogMessage(
|
|
62
|
+
#define ABSL_LOG_INTERNAL_LOG_ERROR \
|
|
63
|
+
::absl::log_internal::LogMessage( \
|
|
65
64
|
__FILE__, __LINE__, ::absl::log_internal::LogMessage::ErrorTag{})
|
|
66
|
-
#define
|
|
65
|
+
#define ABSL_LOG_INTERNAL_LOG_FATAL \
|
|
67
66
|
::absl::log_internal::LogMessageFatal(__FILE__, __LINE__)
|
|
68
|
-
#define
|
|
67
|
+
#define ABSL_LOG_INTERNAL_LOG_QFATAL \
|
|
69
68
|
::absl::log_internal::LogMessageQuietlyFatal(__FILE__, __LINE__)
|
|
70
|
-
#define
|
|
69
|
+
#define ABSL_LOG_INTERNAL_LOG_DFATAL \
|
|
71
70
|
::absl::log_internal::LogMessage(__FILE__, __LINE__, ::absl::kLogDebugFatal)
|
|
72
|
-
#define
|
|
71
|
+
#define ABSL_LOG_INTERNAL_LOG_LEVEL(severity) \
|
|
73
72
|
::absl::log_internal::LogMessage(__FILE__, __LINE__, \
|
|
74
73
|
absl_log_internal_severity)
|
|
75
74
|
|
|
76
75
|
// Fatal `DLOG`s expand a little differently to avoid being `[[noreturn]]`.
|
|
77
|
-
#define
|
|
76
|
+
#define ABSL_LOG_INTERNAL_DLOG_FATAL \
|
|
78
77
|
::absl::log_internal::LogMessageDebugFatal(__FILE__, __LINE__)
|
|
79
|
-
#define
|
|
78
|
+
#define ABSL_LOG_INTERNAL_DLOG_QFATAL \
|
|
80
79
|
::absl::log_internal::LogMessageQuietlyDebugFatal(__FILE__, __LINE__)
|
|
81
80
|
|
|
82
81
|
// These special cases dispatch to special-case constructors that allow us to
|
|
@@ -89,12 +88,12 @@
|
|
|
89
88
|
#endif // !defined(STRIP_LOG) || !STRIP_LOG
|
|
90
89
|
|
|
91
90
|
// This part of a non-fatal `DLOG`s expands the same as `LOG`.
|
|
92
|
-
#define
|
|
93
|
-
#define
|
|
94
|
-
#define
|
|
95
|
-
#define
|
|
96
|
-
#define
|
|
91
|
+
#define ABSL_LOG_INTERNAL_DLOG_INFO ABSL_LOG_INTERNAL_LOG_INFO
|
|
92
|
+
#define ABSL_LOG_INTERNAL_DLOG_WARNING ABSL_LOG_INTERNAL_LOG_WARNING
|
|
93
|
+
#define ABSL_LOG_INTERNAL_DLOG_ERROR ABSL_LOG_INTERNAL_LOG_ERROR
|
|
94
|
+
#define ABSL_LOG_INTERNAL_DLOG_DFATAL ABSL_LOG_INTERNAL_LOG_DFATAL
|
|
95
|
+
#define ABSL_LOG_INTERNAL_DLOG_LEVEL ABSL_LOG_INTERNAL_LOG_LEVEL
|
|
97
96
|
|
|
98
|
-
#define
|
|
97
|
+
#define ABSL_LOG_INTERNAL_LOG_DO_NOT_SUBMIT ABSL_LOG_INTERNAL_LOG_ERROR
|
|
99
98
|
|
|
100
99
|
#endif // ABSL_LOG_INTERNAL_STRIP_H_
|
|
@@ -45,13 +45,25 @@ ABSL_NAMESPACE_BEGIN
|
|
|
45
45
|
namespace log_internal {
|
|
46
46
|
|
|
47
47
|
namespace {
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
#ifdef _WIN32
|
|
50
|
-
|
|
50
|
+
constexpr char kPathSeparators[] = "/\\";
|
|
51
51
|
#else
|
|
52
|
-
|
|
52
|
+
constexpr char kPathSeparators[] = "/";
|
|
53
53
|
#endif
|
|
54
|
+
|
|
55
|
+
bool ModuleIsPath(absl::string_view module_pattern) {
|
|
56
|
+
return module_pattern.find_first_of(kPathSeparators) != module_pattern.npos;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
absl::string_view Basename(absl::string_view file) {
|
|
60
|
+
auto sep = file.find_last_of(kPathSeparators);
|
|
61
|
+
if (sep != file.npos) {
|
|
62
|
+
file.remove_prefix(sep + 1);
|
|
63
|
+
}
|
|
64
|
+
return file;
|
|
54
65
|
}
|
|
66
|
+
|
|
55
67
|
} // namespace
|
|
56
68
|
|
|
57
69
|
bool VLogSite::SlowIsEnabled(int stale_v, int level) {
|
|
@@ -129,21 +141,9 @@ int VLogLevel(absl::string_view file, const std::vector<VModuleInfo>* infos,
|
|
|
129
141
|
// parsing flags). We can't allocate in `VLOG`, so we treat null as empty
|
|
130
142
|
// here and press on.
|
|
131
143
|
if (!infos || infos->empty()) return current_global_v;
|
|
132
|
-
// Get basename for file
|
|
133
|
-
absl::string_view basename = file;
|
|
134
|
-
{
|
|
135
|
-
const size_t sep = basename.rfind('/');
|
|
136
|
-
if (sep != basename.npos) {
|
|
137
|
-
basename.remove_prefix(sep + 1);
|
|
138
|
-
#ifdef _WIN32
|
|
139
|
-
} else {
|
|
140
|
-
const size_t sep = basename.rfind('\\');
|
|
141
|
-
if (sep != basename.npos) basename.remove_prefix(sep + 1);
|
|
142
|
-
#endif
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
144
|
|
|
146
|
-
absl::string_view stem = file
|
|
145
|
+
absl::string_view stem = file;
|
|
146
|
+
absl::string_view stem_basename = Basename(stem);
|
|
147
147
|
{
|
|
148
148
|
const size_t sep = stem_basename.find('.');
|
|
149
149
|
if (sep != stem_basename.npos) {
|
|
@@ -159,10 +159,10 @@ int VLogLevel(absl::string_view file, const std::vector<VModuleInfo>* infos,
|
|
|
159
159
|
// If there are any slashes in the pattern, try to match the full
|
|
160
160
|
// name.
|
|
161
161
|
if (FNMatch(info.module_pattern, stem)) {
|
|
162
|
-
return info.vlog_level
|
|
162
|
+
return info.vlog_level;
|
|
163
163
|
}
|
|
164
164
|
} else if (FNMatch(info.module_pattern, stem_basename)) {
|
|
165
|
-
return info.vlog_level
|
|
165
|
+
return info.vlog_level;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -247,11 +247,11 @@
|
|
|
247
247
|
// However, simply testing whether verbose logging is enabled can be expensive.
|
|
248
248
|
// If you don't intend to enable verbose logging in non-debug builds, consider
|
|
249
249
|
// using `DVLOG` instead.
|
|
250
|
-
#define VLOG(
|
|
250
|
+
#define VLOG(verbose_level) ABSL_LOG_INTERNAL_VLOG_IMPL(verbose_level)
|
|
251
251
|
|
|
252
252
|
// `DVLOG` behaves like `VLOG` in debug mode (i.e. `#ifndef NDEBUG`).
|
|
253
253
|
// Otherwise, it compiles away and does nothing.
|
|
254
|
-
#define DVLOG(
|
|
254
|
+
#define DVLOG(verbose_level) ABSL_LOG_INTERNAL_DVLOG_IMPL(verbose_level)
|
|
255
255
|
|
|
256
256
|
// `LOG_IF` and friends add a second argument which specifies a condition. If
|
|
257
257
|
// the condition is false, nothing is logged.
|