llvm-project/compiler-rt/lib/lsan
Dmitry Vyukov 595d340dce sanitizer_common: make internal/external headers compatible
This is a follow up to 4f3f4d6722
("sanitizer_common: fix __sanitizer_get_module_and_offset_for_pc signature mismatch")
which fixes a similar problem for msan build.

I am getting the following error compiling a unit test for code that
uses sanitizer_common headers and googletest transitively includes
sanitizer interface headers:

In file included from third_party/gwp_sanitizers/singlestep_test.cpp:3:
In file included from sanitizer_common/sanitizer_common.h:19:
sanitizer_interface_internal.h:41:5: error: typedef redefinition with different types
('struct __sanitizer_sandbox_arguments' vs 'struct __sanitizer_sandbox_arguments')
  } __sanitizer_sandbox_arguments;
common_interface_defs.h:39:3: note: previous definition is here
} __sanitizer_sandbox_arguments;

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D119546
2022-02-11 19:39:44 +01:00
..
.clang-format Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
CMakeLists.txt [compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS 2021-11-10 19:16:20 -08:00
lsan.cpp sanitizer_common: make internal/external headers compatible 2022-02-11 19:39:44 +01:00
lsan.h Format lsan.h 2021-12-07 10:52:35 -08:00
lsan_allocator.cpp Change __lsan::kMaxAllowedMallocSize literal types to unsigned long long 2021-12-07 10:38:13 -08:00
lsan_allocator.h [sanitizer] Add hexagon support to lsan 2021-08-17 19:59:24 -07:00
lsan_common.cpp [lsan] Move out suppression of invalid PCs from StopTheWorld 2021-12-09 12:17:35 -08:00
lsan_common.h sanitizer_common: prefix thread-safety macros with SANITIZER_ 2022-01-07 15:11:00 +01:00
lsan_common_fuchsia.cpp [NFC][lsan] Refactor LockThreadRegistry/LockAllocator calls 2021-12-06 22:27:11 -08:00
lsan_common_linux.cpp [NFC][lsan] Refactor LockThreadRegistry/LockAllocator calls 2021-12-06 22:27:11 -08:00
lsan_common_mac.cpp [ASan][Darwin] Avoid crash during ASan initialization 2022-01-07 12:28:38 -08:00
lsan_flags.inc
lsan_fuchsia.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_fuchsia.h [lsan] Use final on Fuchsia ThreadContext declaration 2020-12-02 11:58:03 -08:00
lsan_interceptors.cpp [sanitizer] DEFINE_REAL_PTHREAD_FUNCTIONS for hwasan, lsan, msan 2021-12-02 10:24:04 -08:00
lsan_linux.cpp [lsan] Support LeakSanitizer runtime on Fuchsia 2020-01-28 11:34:53 -08:00
lsan_mac.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_malloc_mac.cpp compiler-rt: Rename .cc file in lib/lsan to .cpp 2019-08-01 14:01:30 +00:00
lsan_posix.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_posix.h [sanitizer] Make destructors protected 2020-11-02 18:00:43 -08:00
lsan_preinit.cpp compiler-rt: Rename .cc file in lib/lsan to .cpp 2019-08-01 14:01:30 +00:00
lsan_thread.cpp lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
lsan_thread.h lsan: remove pthread_detach/join interceptors 2021-11-17 14:49:15 +01:00
weak_symbols.txt