llvm-project/clang/lib/Parse
Alexis Hunt 6aa9beef50 Clean up a large number of C++11 attribute parse issues, including parsing
attributes in more places where we didn't and catching a lot more issues.

This implements nearly every aspect of C++11 attribute parsing, except for:
 - Attributes are permitted on explicit instantiations inside the declarator
   (but not preceding the decl-spec)
 - Attributes are permitted on friend declarations of functions.
 - Multiple instances of the same attribute in an attribute-list (e.g.
   [[noreturn, noreturn]], not [[noreturn]] [[noreturn]] which is conforming)
   are allowed.
The first two are marked as expected-FIXME in the test file and the latter
is probably a defect and is currently untested.

Thanks to Richard Smith for providing the lion's share of the testcases.

llvm-svn: 159072
2012-06-23 05:07:58 +00:00
..
CMakeLists.txt Remove a goofy CMake hack and use the standard CMake facilities to 2012-06-21 01:30:21 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
ParseAST.cpp Revert predefined decl tracking. 2012-06-19 18:17:30 +00:00
ParseCXXInlineMethods.cpp PR13064: Store whether an in-class initializer uses direct or copy 2012-06-10 03:12:00 +00:00
ParseDecl.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParseDeclCXX.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParseExpr.cpp Support L__FUNCTION__ in microsoft mode, PR11789 2012-06-23 02:07:59 +00:00
ParseExprCXX.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParseInit.cpp Disambiguation of '[[': 2012-04-10 01:32:12 +00:00
ParseObjc.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParsePragma.cpp Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST). 2012-03-11 07:00:24 +00:00
ParsePragma.h Remove unused private member variables found by clang's new -Wunused-private-field. 2012-06-06 17:32:50 +00:00
ParseStmt.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParseTemplate.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
ParseTentative.cpp Support L__FUNCTION__ in microsoft mode, PR11789 2012-06-23 02:07:59 +00:00
Parser.cpp Clean up a large number of C++11 attribute parse issues, including parsing 2012-06-23 05:07:58 +00:00
RAIIObjectsForParser.h Whenever we have a BalancedDelimiterTracker, we have a 'nested' scope 2012-06-06 21:18:07 +00:00