llvm-project/clang/test
Richard Smith 7bdcc4a9da Disambiguation of '[[':
* In C++11, '[[' is ill-formed unless it starts an attribute-specifier. Reject
   array sizes and array indexes which begin with a lambda-expression. Recover by
   parsing the lambda as a lambda.
 * In Objective-C++11, either '[' could be the start of a message-send.
   Fully disambiguate this case: it turns out that the grammars of message-sends,
   lambdas and attributes do not actually overlap. Accept any occurrence of '[['
   where either '[' starts a message send, but reject a lambda in an array index
   just like in C++11 mode.

Implement a couple of changes to the attribute wording which occurred after our
attributes implementation landed:
 * In a function-declaration, the attributes go after the exception specification,
   not after the right paren.
 * A reference type can have attributes applied.
 * An 'identifier' in an attribute can also be a keyword. Support for alternative
   tokens (iso646 keywords) in attributes to follow.

And some bug fixes:
 * Parse attributes after declarator-ids, even if they are not simple identifiers.
 * Do not accept attributes after a parenthesized declarator.
 * Accept attributes after an array size in a new-type-id.
 * Partially disamiguate 'delete' followed by a lambda. More work is required
   here for the case where the lambda-introducer is '[]'.

llvm-svn: 154369
2012-04-10 01:32:12 +00:00
..
ARCMT [arcmt] When fixing the "unassigned init call" ARC error, make sure 2012-03-31 01:34:06 +00:00
ASTMerge Fix crash at @implementation with a forward reference as base class. 2012-03-13 01:09:36 +00:00
Analysis Rework ExprEngine::evalLoad and clients (e.g. VisitBinaryOperator) so that when we generate a new ExplodedNode 2012-04-06 22:10:18 +00:00
CXX Disambiguation of '[[': 2012-04-10 01:32:12 +00:00
CodeCompletion Provide result types for code completions that describe built-in 2011-10-18 21:20:17 +00:00
CodeGen Make the variant of __builtin_shufflevector that takes the shuffle indexes as a vector actually usable. Patch by David Neto. PR12465. 2012-04-05 21:48:40 +00:00
CodeGenCUDA CUDA: IR generation support for device stubs 2011-10-06 18:51:56 +00:00
CodeGenCXX Don't forget to evaluate the subexpression in a null pointer cast. If we're 2012-04-08 08:02:07 +00:00
CodeGenObjC Revert r154321, pending more discussion. 2012-04-09 17:25:11 +00:00
CodeGenObjCXX Fix a Sema invariant bug that I recently introduced involving 2012-04-06 18:20:53 +00:00
CodeGenOpenCL A few style changes. 2012-01-19 01:16:16 +00:00
Coverage rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Driver Fix the testcase :-( 2012-04-10 00:13:42 +00:00
FixIt Implement support for null non-type template arguments for non-type 2012-04-06 22:40:38 +00:00
Frontend Escape % in diagnostic message when compiling LLVM IR. 2012-03-16 22:31:42 +00:00
Headers rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Index Remove -fobjc-default-synthesize-properties as the option 2012-04-09 22:17:37 +00:00
Lexer ext_reserved_user_defined_literal must not default to Error in MicrosoftMode. Hence create ext_ms_reserved_user_defined_literal that doesn't default to Error; otherwise MSVC headers won't parse. 2012-04-07 23:09:23 +00:00
Misc Introduce a -cc1-level option -pubnames-dump, which simply dumps the 2012-03-27 18:06:49 +00:00
Modules Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. 2012-04-06 18:12:22 +00:00
PCH Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. 2012-04-06 18:12:22 +00:00
Parser Disambiguation of '[[': 2012-04-10 01:32:12 +00:00
Preprocessor Teach Clang about PIE compilations. This is the first step of PR12380. 2012-04-08 16:40:35 +00:00
Rewriter objective-c modern translator: rewriting specific 2012-04-10 00:08:18 +00:00
Sema Implement C90 pedantic warning for duplicate declaration specifiers which are duplicated via a typedef. Patch by Tim Northover. 2012-04-05 22:47:34 +00:00
SemaCUDA CUDA: diagnose invalid calls across targets 2011-10-02 23:49:40 +00:00
SemaCXX Disambiguation of '[[': 2012-04-10 01:32:12 +00:00
SemaObjC Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. 2012-04-06 18:12:22 +00:00
SemaObjCXX Added a new attribute, objc_root_class, which informs the compiler when a root class is intentionally declared. 2012-04-06 18:12:22 +00:00
SemaOpenCL Support constant evaluation for OpenCL nested vector literals. Patch by Anton Lokhmotov. 2012-01-03 23:24:20 +00:00
SemaTemplate Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
Tooling Implementing a test for the use of PWD to base finding the 2012-04-09 19:10:04 +00:00
Unit test/Unit: Fixup lit.cfg to allow running inside test/Unit (with llvm-config in 2011-06-22 21:46:43 +00:00
CMakeLists.txt Add the dependency on clang-check to clang-test, so clang-check 2012-04-04 12:18:22 +00:00
Makefile lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg test/lit.cfg: Please pass %INCLUDE% to clang.exe on Win32. MS-compatible clang may refer to %INCLUDE%. It fixes r154188. 2012-04-07 01:02:53 +00:00
lit.site.cfg.in lit support for REQUIRES: asserts. 2011-06-22 23:23:49 +00:00
make_test_dirs.pl