llvm-project/clang/test
Reid Kleckner da30cff9ef [diagnostics] Avoid crashes while printing macro backtraces
When attempting to map a source into a given level of macro expansion,
this code was ignoring the possibility that the start and end of the
range might take wildly different paths through the tree of macro
expansions. It was assuming that the begin spelling location would
always precede the end spelling location, which is false. A macro can
easily transpose its arguments.

This also fixes a related issue where there are extra macro arguments
between the begin location and the end location. In this situation, we
now highlight the entire macro invocation.

Pair programmed with Richard Smith.

Fixes PR12818.

llvm-svn: 254981
2015-12-08 01:08:09 +00:00
..
ARCMT Define weak and __weak to mean ARC-style weak references, even in MRC. 2015-10-22 18:38:17 +00:00
ASTMerge Update tests touched by r249656 2015-10-08 06:31:22 +00:00
Analysis [analyzer] Fix crash when lambda captures a variable-length array. 2015-12-07 23:01:53 +00:00
CXX PR25731: namespace alias declarations can appear at block scope; ensure that we 2015-12-03 23:24:04 +00:00
CodeCompletion [Tests] Modified Lit Tests to be C++11 compatibile 2015-08-27 18:49:15 +00:00
CodeGen Remove target specifier from new tests 2015-12-07 20:40:36 +00:00
CodeGenCUDA Allow linking multiple bitcode files. 2015-10-27 17:56:59 +00:00
CodeGenCXX Add tests for pass_object_size. 2015-12-03 19:19:09 +00:00
CodeGenObjC Fix debug info for Objective-C properties from class extensions after r251874 2015-12-04 19:14:14 +00:00
CodeGenObjCXX Revert "Change memcpy/memset/memmove to have dest and source alignments." 2015-11-19 05:55:59 +00:00
CodeGenOpenCL [OpenCL 2.0] Apply default address space (AS). 2015-11-23 11:14:44 +00:00
Coverage Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
CoverageMapping InstrProf: Fix a misuse of the FunctionDecl API when generating coverage 2015-07-28 00:41:51 +00:00
Driver Remove target specifier from new tests 2015-12-07 20:40:36 +00:00
FixIt [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
Format Fix clang-format test. I believe that the new behavior is better. 2015-11-23 08:50:52 +00:00
Frontend Preprocessor: define correct tvOS and watchOS version macros 2015-10-30 16:30:30 +00:00
Headers Make ms-intrin.cpp test require the x86 target. 2015-09-23 00:24:34 +00:00
Index Make clang_Cursor_getMangling not mangle if the declaration isn't mangled 2015-11-23 19:56:46 +00:00
Integration
Layout [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions, by Denis Zobnin. 2015-11-20 07:02:57 +00:00
Lexer [coroutines] Add forgotten test for lexing coroutines keywords. 2015-10-22 05:21:12 +00:00
Misc [diagnostics] Avoid crashes while printing macro backtraces 2015-12-08 01:08:09 +00:00
Modules [modules] Don't reject multiple modules providing contents for the same embedded file. 2015-12-01 03:32:49 +00:00
OpenMP [OPENMP 4.5] parsing/sema support for 'grainsize' clause. 2015-12-07 12:52:51 +00:00
PCH PR17381: Treat undefined behavior during expression evaluation as an unmodeled 2015-12-03 01:36:22 +00:00
Parser [coroutines] Factor out co_await representation into common base class for co_await and co_yield, and use it to hold await_* calls. 2015-11-22 02:57:17 +00:00
Preprocessor Teaches clang about Cortex-A35. 2015-12-02 12:03:42 +00:00
Profile [PGO] Instrument only base constructors and destructors. 2015-12-06 14:32:39 +00:00
Rewriter Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
Sema Add tests for `&enable_if_function` diagnostics. 2015-12-03 20:54:58 +00:00
SemaCUDA Produce a better diagnostic for global register variables. 2015-11-18 00:15:28 +00:00
SemaCXX Fix PR20334: invalid assertion while diagnosing list initialization failure 2015-12-07 02:37:44 +00:00
SemaObjC Don't actually add the __unsafe_unretained qualifier in MRC; 2015-11-19 02:28:03 +00:00
SemaObjCXX [Lit Test] Updated 26 Lit tests to be C++11 compatible. 2015-11-11 19:34:47 +00:00
SemaOpenCL [OpenCL 2.0] Apply default address space (AS). 2015-11-23 11:14:44 +00:00
SemaTemplate [Lit Test] Updated 34 Lit tests to be C++11 compatible. 2015-11-17 20:25:05 +00:00
TableGen
Tooling int function without a return statement is invalid C++. 2015-11-27 18:10:49 +00:00
Unit
VFS Stop messing with the 'g' group of options in CompilerInvocation. 2015-10-08 04:24:12 +00:00
.clang-format
CMakeLists.txt [ThinLTO] Option to invoke ThinLTO backend passes and importing 2015-12-07 19:21:34 +00:00
Makefile
TestRunner.sh
cxx-sections.data
lit.cfg Revert r247977, "clang/test/lit.cfg: *-ps4 doesn't have appropriate driver yet. Mark it as "non-clang-driver"." 2015-10-20 22:36:16 +00:00
lit.site.cfg.in
make_test_dirs.pl