hanchenye-llvm-project/clang/test
Alexey Samsonov 4f319cca42 [ASan] Print exact source location of global variables in error reports.
See https://code.google.com/p/address-sanitizer/issues/detail?id=299 for the
original feature request.

Introduce llvm.asan.globals metadata, which Clang (or any other frontend)
may use to report extra information about global variables to ASan
instrumentation pass in the backend. This metadata replaces
llvm.asan.dynamically_initialized_globals that was used to detect init-order
bugs. llvm.asan.globals contains the following data for each global:
  1) source location (file/line/column info);
  2) whether it is dynamically initialized;
  3) whether it is blacklisted (shouldn't be instrumented).

Source location data is then emitted in the binary and can be picked up
by ASan runtime in case it needs to print error report involving some global.
For example:

  0x... is located 4 bytes to the right of global variable 'C::array' defined in '/path/to/file:17:8' (0x...) of size 40

These source locations are printed even if the binary doesn't have any
debug info.

This is an ABI-breaking change. ASan initialization is renamed to
__asan_init_v4(). Pre-built libraries compiled with older Clang will not work
with the fresh runtime.

llvm-svn: 212188
2014-07-02 16:54:41 +00:00
..
ARCMT [analyzer] Check for NULL passed to CFAutorelease. 2014-06-21 23:50:40 +00:00
ASTMerge
Analysis Do not inline methods of C++ containers (coming from headers). 2014-06-27 01:03:05 +00:00
CXX Don't accept qualified 'int' main return types in C++ or standard C mode 2014-07-02 07:07:20 +00:00
CodeCompletion When completing Objective-C instance method invocations, perform a contextual conversion to an Objective-C pointer type of the target expression if needed. This fixes code completion of method invocations where the target is a smart pointer that has an explicit conversion operator to an Objective-C type. 2014-02-28 19:07:22 +00:00
CodeGen [ASan] Print exact source location of global variables in error reports. 2014-07-02 16:54:41 +00:00
CodeGenCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
CodeGenCXX clang/test/CodeGenCXX/microsoft-no-rtti-data.cpp: Relax an expression for -Asserts. 2014-07-01 23:33:03 +00:00
CodeGenObjC Improve robustness of tests for module flags metadata 2014-06-19 16:10:21 +00:00
CodeGenObjCXX Improve robustness of tests for module flags metadata 2014-06-19 16:10:21 +00:00
CodeGenOpenCL Add R600 builtin codegen. 2014-06-24 20:45:01 +00:00
Coverage Fix crash caused by unnamed union or struct when doing ast-print 2014-06-20 17:08:28 +00:00
Driver [mips] Added additional test cases for passing -mabi to the assembler. 2014-07-02 15:21:50 +00:00
FixIt Objective-C ARC. Provide diagnostic and fix-it 2014-06-26 21:22:16 +00:00
Format clang-format: Introduce style with spaces on both sides of */&. 2014-06-17 12:40:34 +00:00
Frontend Account for differences in grep implementations 2014-06-27 03:11:38 +00:00
Headers Introduce arm_acle.h supporting existing LLVM builtin intrinsics 2014-06-27 21:25:42 +00:00
Index [test] Add '-target' option to fix bot failure. 2014-06-21 18:28:44 +00:00
Integration Split out header integration tests 2014-05-04 13:00:32 +00:00
Layout Fix warning in ms-x86-vtordisp test case 2014-04-14 23:49:17 +00:00
Lexer Make MS i128 suffix test from r211446 more robust 2014-06-21 23:32:05 +00:00
Misc PR15677 - Crash in template diffing. Check that expression is evaluatable before evaluating it. 2014-07-01 04:17:53 +00:00
Modules Remove REQUIRES lines from portable tests 2014-06-25 22:46:44 +00:00
OpenMP [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
PCH Add loop unroll pragma support 2014-06-11 17:56:26 +00:00
Parser Don't allow dllimport variables in constant initializers 2014-06-25 22:19:48 +00:00
Preprocessor Do not define __STRICT_ANSI__ in clang-cl 2014-06-30 20:36:33 +00:00
Profile CodeGen: Improve warnings about uninstrumented files when profiling 2014-06-26 01:45:07 +00:00
Rewriter Don't suppress warning about dllimport on typedefs etc. in MicrosoftExt mode 2014-05-23 20:16:41 +00:00
Sema ARM: add support for v8 ldaex/stlex builtins. 2014-07-02 12:56:02 +00:00
SemaCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
SemaCXX Prevent Clang from crashing on template code. 2014-07-02 04:39:38 +00:00
SemaObjC Objective-C. When we use @selector(save:), etc. there may be more 2014-06-24 17:02:19 +00:00
SemaObjCXX Fix assertion hit or bogus compiler error in cases when instantiating ObjC property accesses used with overloaded binary operators. 2014-06-19 14:45:16 +00:00
SemaOpenCL [OpenCL] Reject reqd_work_group_size(X, Y, Z) where X, Y or Z == 0. 2014-05-19 14:41:38 +00:00
SemaTemplate Fix/Improve SourceRange of explicitly defaulted members 2014-06-20 08:44:22 +00:00
TableGen
Tooling PR19601: testcase improvement 2014-05-01 19:36:13 +00:00
Unit libclang: fix a bug in processing invalid arguments, introduced in r201249 2014-02-18 15:20:02 +00:00
VFS Make -Wincomplete-umbrella go through the VFS 2014-06-25 23:53:43 +00:00
.clang-format
CMakeLists.txt Don't add examples to the check-clang dependencies unless requested 2014-06-01 02:02:23 +00:00
Makefile Reverting because reverting r200145. 2014-01-27 22:57:33 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Add detection of OS X relocatable SDK to compiler-rt as a lit.util function 2014-06-10 14:22:00 +00:00
lit.site.cfg.in test: Fix feature test for "native" in lit.cfg 2014-03-11 04:34:17 +00:00
make_test_dirs.pl