llvm-project/clang/test
Eli Friedman cdb135a96b More hacking on mapDiagnosticRanges to make it handle more cases.
This still isn't quite right, but it fixes a crash.

I factored out findCommonParent because we need it on the result of 
getImmediateExpansionRange: for a function macro, the beginning
and end of an expansion range can come out of different
macros/macro arguments, which means the resulting range is a complete
mess to handle consistently.

I also made some changes to how findCommonParent works; it works somewhat
better in some cases, and somewhat worse in others, but I think overall
it's a better balance.  I'm coming to the conclusion that mapDiagnosticRanges
isn't using the right algorithm, though: chasing the caret is fundamentally
more complicated than any algorithm which only considers one FileID for the
caret can handle because each SourceLocation doesn't really have a single parent.
We need to follow the same path of choosing expansion locations and spelling
locations which the caret used to come up with the correct range
in the general case.

Fixes <rdar://problem/12847524>.

llvm-svn: 170049
2012-12-13 00:14:59 +00:00
..
ARCMT Change VerifyDiagnosticConsumer so that it *must* contain at least one "expected-*" directive. As a result, for test-cases that are not expected to generate any diagnostics, an additional directive "expected-no-diagnostics" has been implemented which can then be included in such test-cases. This new directive may not be used in conjunction with any other "expected-*" directive. 2012-10-19 12:49:32 +00:00
ASTMerge Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
Analysis [analyzer] Don't crash running destructors for multidimensional arrays. 2012-12-12 19:13:44 +00:00
CXX PR14558: Compute triviality of special members (etc) at the end of the class 2012-12-11 01:14:52 +00:00
CodeCompletion PR14381: Never skip constexpr function bodies when code-completing. We may need 2012-11-19 21:13:18 +00:00
CodeGen Rewrite calls to bitcast unprototyped functions when emitting a definition. 2012-12-12 22:21:47 +00:00
CodeGenCUDA CUDA: give static storage class to __shared__ and __constant__ 2012-08-28 20:37:50 +00:00
CodeGenCXX Add a triple to this test. It depends on little-endian bitfield layout. 2012-12-09 10:39:18 +00:00
CodeGenObjC Marking the objc_autoreleaseReturnValue and objc_retainAutoreleaseReturnValue 2012-12-12 17:52:21 +00:00
CodeGenObjCXX Fix PR14474: don't emit debug info for interface types in -gline-tables-only mode. 2012-12-03 18:28:12 +00:00
CodeGenOpenCL Fix line ending is tests. No functional change. 2012-12-12 00:52:15 +00:00
Coverage Revert r166541, "clang/test: Add appropriate requirements as REQUIRES, corresponding to r166532." 2012-10-24 03:59:09 +00:00
Driver Add -fslp-vectorize to enable bb-vectorize 2012-12-11 19:59:32 +00:00
FixIt Format strings: offer a cast to 'unichar' for %C in Objective-C contexts. 2012-12-05 18:44:49 +00:00
Frontend A number of test cases assume that an "int" parameter or return value 2012-10-24 12:22:56 +00:00
Headers [clang tests] Added require ppc64-registered-target to Headers/altivec-header.c to ensure it only runs on ppc64. 2012-10-31 20:20:04 +00:00
Index [libclang] Make sure tokens from preprocessor directives are annotated as such, 2012-12-12 01:05:25 +00:00
Lexer Support for #pragma region/endregion for MSVC compatibility. Patch thanks to pravic! 2012-11-30 19:52:30 +00:00
Misc More hacking on mapDiagnosticRanges to make it handle more cases. 2012-12-13 00:14:59 +00:00
Modules clang/test: Suppress two tests on win32 for now, since, not sure, in r169829 to r169831. 2012-12-12 00:51:38 +00:00
PCH clang/test: Suppress two tests on win32 for now, since, not sure, in r169829 to r169831. 2012-12-12 00:51:38 +00:00
Parser PR14549. Don't assert if we see an incomplete decltype specifier at the end of the file. 2012-12-09 04:17:57 +00:00
Preprocessor Don't warn about disabled macro expansion if we see the name of a function-like macro which isn't immediately followed by '('. FreeBSD's stdio.h #defines foo(x) to (foo)(x), apparently. 2012-12-12 02:46:14 +00:00
Rewriter -arch is a darwin-specific driver feature, use a triple instead in rewriter test. 2012-10-02 09:42:36 +00:00
Sema [ms-inline asm] Test case for r170037. 2012-12-12 22:46:23 +00:00
SemaCUDA
SemaCXX Virtual method overrides can no longer have mismatched calling conventions. This fixes PR14339. 2012-12-09 17:45:41 +00:00
SemaObjC [objc] For the ARC error that is emitted when a synthesized property implementation 2012-12-12 22:48:25 +00:00
SemaObjCXX Fix crash-on-invalid. <rdar://problem/12765391>. 2012-11-29 03:13:49 +00:00
SemaOpenCL Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. 2012-10-19 12:44:48 +00:00
SemaTemplate PR13098: If we're instantiating an overloaded binary operator and we could 2012-11-28 21:47:39 +00:00
Tooling Use color for -ast-dump-filter only when it is supported 2012-11-21 10:54:55 +00:00
Unit
CMakeLists.txt Removed standalone clang-ast-dump tool. 2012-07-26 01:44:18 +00:00
Makefile
TestRunner.sh
cxx-sections.data
lit.cfg clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver is not used. 2012-12-11 07:06:09 +00:00
lit.site.cfg.in
make_test_dirs.pl