llvm-project/clang/test
David Majnemer 24b283005d Parse: Don't crash on trailing whitespace before EOF
Parser::ParseDeclarationSpecifiers eagerly updates the source range of
the DeclSpec with the current token position.  However, it might not
consume any more tokens.

Fix this by only setting the start of the range, not the end.  This way
the SourceRange will be invalid if we don't consume any more tokens.

This fixes PR20413.

Differential Revision: http://reviews.llvm.org/D4646

llvm-svn: 214018
2014-07-26 05:41:31 +00:00
..
ARCMT [analyzer] Check for NULL passed to CFAutorelease. 2014-06-21 23:50:40 +00:00
ASTMerge
Analysis Consolidate header inclusion diagnostics 2014-07-11 20:53:51 +00:00
CXX Improving the "integer constant too large" diagnostics based on post-commit feedback from Richard Smith. Amends r213657. 2014-07-24 14:51:23 +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 Fix test/CodeGen/ms-inline-asm.c from r213916. 2014-07-25 02:39:33 +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-abi-byval-thunks.cpp: Fix for -Asserts, like CHECK64 does. 2014-07-26 04:12:34 +00:00
CodeGenObjC Mark C++ reference parameters as dereferenceable 2014-07-18 15:52:10 +00:00
CodeGenObjCXX Mark C++ reference parameters as dereferenceable 2014-07-18 15:52:10 +00:00
CodeGenOpenCL Add codegen for more R600 builtins 2014-07-15 17:23:46 +00:00
Coverage Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Driver R600: Add processor type for Mullins 2014-07-26 01:05:20 +00:00
FixIt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Format Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Frontend Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
Headers AVX-512: Added intrinsics to clang. 2014-07-22 11:31:39 +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 MS ABI: Padding injected between empty vbases doesn't up required align 2014-07-17 00:55:19 +00:00
Lexer Improving the "integer constant too large" diagnostics based on post-commit feedback from Richard Smith. Amends r213657. 2014-07-24 14:51:23 +00:00
Misc If a template argument is non-evaluable expression, use the profile ID to see 2014-07-26 02:10:52 +00:00
Modules [modules] Substantially improve handling of #undef: 2014-07-25 04:40:03 +00:00
OpenMP [OPENMP] Improved DSA processing of the loop control variables for loop directives. 2014-07-25 06:27:47 +00:00
PCH Add support for #pragma nounroll. 2014-07-24 18:09:38 +00:00
Parser Parse: Don't crash on trailing whitespace before EOF 2014-07-26 05:41:31 +00:00
Preprocessor AArch64: use aarch64_be instead of arm64_be in all tests. 2014-07-23 12:57:31 +00:00
Profile CodeGen: Improve warnings about uninstrumented files when profiling 2014-06-26 01:45:07 +00:00
Rewriter Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Sema Revert part of r206963 2014-07-25 10:19:47 +00:00
SemaCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
SemaCXX Add a missing Invalid check to SubobjectDesignator::isOnePastEnd() 2014-07-23 23:24:25 +00:00
SemaObjC Objective-C. Warn if protocol used in an @protocol 2014-07-25 19:45:01 +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 Take the canonical type when forming a canonical template argument with 2014-07-24 02:27:39 +00:00
TableGen
Tooling clang/test: Introduce the feature "staticanalyzer" for --enable-clang-static-analyzer. 2014-07-16 12:05:45 +00:00
Unit Let test/Unit/lit.cfg add config.shlibdir to $PATH on DLL platforms like cygming. 2014-07-04 05:11:55 +00:00
VFS Make -Wincomplete-umbrella go through the VFS 2014-06-25 23:53:43 +00:00
.clang-format
CMakeLists.txt Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
Makefile Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]" 2014-07-16 15:12:48 +00:00
lit.site.cfg.in Make clang's rewrite engine a core feature 2014-07-16 16:48:33 +00:00
make_test_dirs.pl