hanchenye-llvm-project/compiler-rt/lib/asan/output_tests
Chandler Carruth 1aa4fef601 Relocate the external headers provided by ASan and the common sanitizer
library.

These headers are intended to be available to user code when built with
AddressSanitizer (or one of the other sanitizer's in the future) to
interface with the runtime library. As such, they form stable external
C interfaces, and the headers shouldn't be located within the
implementation.

I've pulled them out into what seem like fairly obvious locations and
names, but I'm wide open to further bikeshedding of these names and
locations.

I've updated the code and the build system to cope with the new
locations, both CMake and Makefile. Please let me know if this breaks
anyone's build.

The eventual goal is to install these headers along side the Clang
builtin headers when we build the ASan runtime and install it. My
current thinking is to locate them at:

  <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
  <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
  <prefix>/lib/clang/X.Y/include/sanitizer/...

But maybe others have different suggestions?

Fixing the style of the #include between these headers at least unblocks
experimentation with installing them as they now should work when
installed in these locations.

llvm-svn: 162822
2012-08-29 02:27:54 +00:00
..
clone_test.cc
deep_tail_call.cc
default_options.cc Make __asan_default_options a weak function that returns a const char*. 2012-07-25 09:18:43 +00:00
dlclose-test-so.cc
dlclose-test.cc
global-overflow.cc
heap-overflow.cc [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. 2012-07-19 15:07:26 +00:00
interception_failure_test-linux.cc asan/tsan: weak interceptors 2012-05-24 13:54:31 +00:00
interception_malloc_test-linux.cc asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxx 2012-05-28 07:47:35 +00:00
interception_test-linux.cc asan/tsan: rename interceptors from __xsan_xxx to __interceptor_xxx 2012-05-28 07:47:35 +00:00
large_func_test.cc [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. 2012-07-19 15:07:26 +00:00
memcmp_test.cc [asan] fix unwinding inside libc intercepors (asan issue #46) 2012-03-15 01:36:00 +00:00
null_deref.cc [ASan] share code executed at the beginning/end of printing error reports 2012-08-10 15:13:05 +00:00
shared-lib-test-so.cc
shared-lib-test.cc [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. 2012-07-19 15:07:26 +00:00
stack-overflow.cc
stack-use-after-return.cc.disabled
strncpy-overflow.cc [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. 2012-07-19 15:07:26 +00:00
test_output.sh Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
use-after-free.c Check for filenames and numbers to detect possible problems with asan_symbolize.py on -fPIE binaries. 2012-08-15 14:00:09 +00:00
use-after-free.cc [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter. 2012-07-19 15:07:26 +00:00