93d155bc44
-- 3d20ce6cd6541579abecaba169d4b8716d511272 by Jon Cohen <cohenjon@google.com>: Only use LSAN for clang version >= 3.5. This should fix https://github.com/abseil/abseil-cpp/issues/244 PiperOrigin-RevId: 234675129 -- e15bd4ec7a81aa95cc3d09fa1e0e81d58ae478fb by Conrad Parker <conradparker@google.com>: Fix errors in apply() sample code The following changes are made: * Make the example method public. * Give the two user functions different names to avoid confusion about whether apply() can select the correct overload of a function based on its tuple argument (it can't). * Pass tuple2 to the second example apply() invocation, instead of passing its contents individually. * Fix a s/tuple/tuple3/ typo in the third example apply() invocation. PiperOrigin-RevId: 234223407 -- de0ed71e21bc76ddf9fe715fdbaef74cd0df95c7 by Abseil Team <absl-team@google.com>: First test if a macro is defined to avoid -Wundef. ABSL clients may need to compile their code with the -Wundef warning flag. It will be helpful if ABSL header files can be compiled without the -Wundef warning. How to avoid the -Wundef warning: If a macro may be undefined, we need to first test whether the macro is defined before testing its value. We can't rely on the C preprocessor rule that an undefined macro has the value 0L. PiperOrigin-RevId: 234201123 -- fa484ad7dae0cac21140a96662809ecb0ec8eb5d by Abseil Team <absl-team@google.com>: Internal change. PiperOrigin-RevId: 234185697 -- d69b1baef681e27954b065375ecf9c2320463b2b by Samuel Benzaquen <sbenza@google.com>: Mix pointers more thoroughly. Some pointer alignments interact badly with the mixing constant. By mixing twice we reduce this problem. PiperOrigin-RevId: 234178401 -- 1041d0e474610f3a8fea0db90958857327d6da1c by Samuel Benzaquen <sbenza@google.com>: Record rehashes in the hashtablez struct. Only recording the probe length on insertion causes a huge overestimation of the total probe length at any given time. With natural growth, elements are inserted when the load factor is between (max load/2, max load). However, after a rehash the majority of elements are actually inserted when the load factor is less than max/2 and have a much lower average probe length. Also reset some values when the table is cleared. PiperOrigin-RevId: 234013580 -- 299205caf3c89c47339f7409bc831746602cea84 by Mark Barolak <mbar@google.com>: Fix a sample code snippet that assumes `absl::string_view::const_iterator` is `const char*`. This is generally true, however in C++17 builds, absl::string_view is an alias for std::string_view and on MSVC, the std::string_view::const_iterator is an object instead of just a pointer. PiperOrigin-RevId: 233844595 -- af6c6370cf51a1e6c1469c79dfb2a486a4009136 by Abseil Team <absl-team@google.com>: Internal change. PiperOrigin-RevId: 233773470 -- 6e59e4b8e2bb6101b448f0f32b0bea81fe399ccf by Abseil Team <absl-team@google.com>: fix typo in {Starts|Ends}WithIgnoreCase comment in match.h PiperOrigin-RevId: 233662951 GitOrigin-RevId: 3d20ce6cd6541579abecaba169d4b8716d511272 Change-Id: Ib9a29b1c38c6aedf5d9f3f7f00596e8d30e864dd
305 lines
5.1 KiB
CMake
305 lines
5.1 KiB
CMake
#
|
|
# Copyright 2017 The Abseil Authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
stacktrace
|
|
HDRS
|
|
"stacktrace.h"
|
|
SRCS
|
|
"stacktrace.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::debugging_internal
|
|
absl::base
|
|
absl::core_headers
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
symbolize
|
|
HDRS
|
|
"symbolize.h"
|
|
"internal/symbolize.h"
|
|
SRCS
|
|
"symbolize.cc"
|
|
"symbolize_elf.inc"
|
|
"symbolize_unimplemented.inc"
|
|
"symbolize_win32.inc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::debugging_internal
|
|
absl::demangle_internal
|
|
absl::base
|
|
absl::core_headers
|
|
absl::malloc_internal
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
symbolize_test
|
|
SRCS
|
|
"symbolize_test.cc"
|
|
COPTS
|
|
${ABSL_TEST_COPTS}
|
|
DEPS
|
|
absl::stack_consumption
|
|
absl::symbolize
|
|
absl::base
|
|
absl::core_headers
|
|
absl::memory
|
|
gmock
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
examine_stack
|
|
HDRS
|
|
"internal/examine_stack.h"
|
|
SRCS
|
|
"internal/examine_stack.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::stacktrace
|
|
absl::symbolize
|
|
absl::base
|
|
absl::core_headers
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
failure_signal_handler
|
|
HDRS
|
|
"failure_signal_handler.h"
|
|
SRCS
|
|
"failure_signal_handler.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::examine_stack
|
|
absl::stacktrace
|
|
absl::base
|
|
absl::config
|
|
absl::core_headers
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
failure_signal_handler_test
|
|
SRCS
|
|
"failure_signal_handler_test.cc"
|
|
COPTS
|
|
${ABSL_TEST_COPTS}
|
|
DEPS
|
|
absl::failure_signal_handler
|
|
absl::stacktrace
|
|
absl::symbolize
|
|
absl::base
|
|
absl::strings
|
|
Threads::Threads
|
|
gmock
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
debugging_internal
|
|
HDRS
|
|
"internal/address_is_readable.h"
|
|
"internal/elf_mem_image.h"
|
|
"internal/stacktrace_aarch64-inl.inc"
|
|
"internal/stacktrace_arm-inl.inc"
|
|
"internal/stacktrace_config.h"
|
|
"internal/stacktrace_generic-inl.inc"
|
|
"internal/stacktrace_powerpc-inl.inc"
|
|
"internal/stacktrace_unimplemented-inl.inc"
|
|
"internal/stacktrace_win32-inl.inc"
|
|
"internal/stacktrace_x86-inl.inc"
|
|
"internal/vdso_support.h"
|
|
SRCS
|
|
"internal/address_is_readable.cc"
|
|
"internal/elf_mem_image.cc"
|
|
"internal/vdso_support.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::base
|
|
absl::core_headers
|
|
absl::dynamic_annotations
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
demangle_internal
|
|
HDRS
|
|
"internal/demangle.h"
|
|
SRCS
|
|
"internal/demangle.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::base
|
|
absl::core_headers
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
demangle_test
|
|
SRCS
|
|
"internal/demangle_test.cc"
|
|
COPTS
|
|
${ABSL_TEST_COPTS}
|
|
DEPS
|
|
absl::demangle_internal
|
|
absl::stack_consumption
|
|
absl::base
|
|
absl::core_headers
|
|
absl::memory
|
|
gmock_main
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
leak_check
|
|
HDRS
|
|
"leak_check.h"
|
|
SRCS
|
|
"leak_check.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::core_headers
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
leak_check_disable
|
|
SRCS
|
|
"leak_check_disable.cc"
|
|
PUBLIC
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
leak_check_api_enabled_for_testing
|
|
HDRS
|
|
"leak_check.h"
|
|
SRCS
|
|
"leak_check.cc"
|
|
COPTS
|
|
$<$<BOOL:${ABSL_HAVE_LSAN}>:-DLEAK_SANITIZER>
|
|
TESTONLY
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
leak_check_api_disabled_for_testing
|
|
HDRS
|
|
"leak_check.h"
|
|
SRCS
|
|
"leak_check.cc"
|
|
COPTS
|
|
"-ULEAK_SANITIZER"
|
|
TESTONLY
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
leak_check_test
|
|
SRCS
|
|
"leak_check_test.cc"
|
|
COPTS
|
|
"$<$<BOOL:${ABSL_HAVE_LSAN}>:-DABSL_EXPECT_LEAK_SANITIZER>"
|
|
LINKOPTS
|
|
"${ABSL_LSAN_LINKOPTS}"
|
|
DEPS
|
|
absl::leak_check_api_enabled_for_testing
|
|
absl::base
|
|
gmock_main
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
leak_check_no_lsan_test
|
|
SRCS
|
|
"leak_check_test.cc"
|
|
COPTS
|
|
"-UABSL_EXPECT_LEAK_SANITIZER"
|
|
DEPS
|
|
absl::leak_check_api_disabled_for_testing
|
|
absl::base
|
|
gmock_main
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
disabled_leak_check_test
|
|
SRCS
|
|
"leak_check_fail_test.cc"
|
|
LINKOPTS
|
|
"${ABSL_LSAN_LINKOPTS}"
|
|
DEPS
|
|
absl::leak_check_api_enabled_for_testing
|
|
absl::leak_check_disable
|
|
absl::base
|
|
gmock_main
|
|
)
|
|
|
|
absl_cc_library(
|
|
NAME
|
|
stack_consumption
|
|
HDRS
|
|
"internal/stack_consumption.h"
|
|
SRCS
|
|
"internal/stack_consumption.cc"
|
|
COPTS
|
|
${ABSL_DEFAULT_COPTS}
|
|
DEPS
|
|
absl::base
|
|
absl::core_headers
|
|
TESTONLY
|
|
)
|
|
|
|
absl_cc_test(
|
|
NAME
|
|
stack_consumption_test
|
|
SRCS
|
|
"internal/stack_consumption_test.cc"
|
|
COPTS
|
|
${ABSL_TEST_COPTS}
|
|
DEPS
|
|
absl::stack_consumption
|
|
absl::base
|
|
absl::core_headers
|
|
gmock_main
|
|
)
|
|
|
|
# component target
|
|
absl_cc_library(
|
|
NAME
|
|
debugging
|
|
DEPS
|
|
absl::stacktrace
|
|
absl::leak_check
|
|
PUBLIC
|
|
)
|