llvm-project/clang/lib/Parse
Kaelyn Uhrain b3967d7fdc In Parser::isCXXDeclarationSpecifier, consider a non-type identifier
followed by an identifier as declaration specificer (except for ObjC).
This allows e.g. an out-of-line C++ member function definitions to be
recognized as functions and not as variable declarations if the type
name for the first parameter is not recognized as a type--say, when there
is a function name shadowing an enum type name and the parameter is
missing the "enum" keyword needed to distinguish the two.

Note that returning TPResult::Error() instead of TPResult::True()
appears to have the same end result, while TPResult::Ambiguous()
results in a crash.

llvm-svn: 155163
2012-04-19 23:17:45 +00:00
..
CMakeLists.txt Thread Safety: Patch to implement delayed parsing of attributes within a 2011-09-08 17:42:22 +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 Added a flag to the parser to skip method bodies. 2012-04-12 10:11:59 +00:00
ParseCXXInlineMethods.cpp Implement the last part of C++ [class.mem]p2, delaying the parsing of 2012-04-16 18:27:27 +00:00
ParseDecl.cpp Implement the last part of C++ [class.mem]p2, delaying the parsing of 2012-04-16 18:27:27 +00:00
ParseDeclCXX.cpp Implement the last part of C++ [class.mem]p2, delaying the parsing of 2012-04-16 18:27:27 +00:00
ParseExpr.cpp Implement the last part of C++ [class.mem]p2, delaying the parsing of 2012-04-16 18:27:27 +00:00
ParseExprCXX.cpp Implement the last part of C++ [class.mem]p2, delaying the parsing of 2012-04-16 18:27:27 +00:00
ParseInit.cpp Disambiguation of '[[': 2012-04-10 01:32:12 +00:00
ParseObjc.cpp Implements boxed expressions for Objective-C. <rdar://problem/10194391> 2012-04-19 00:25:12 +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 Implement #pragma redefine_extname. 2012-02-18 16:12:34 +00:00
ParseStmt.cpp Add an AttributedStmt type to represent a statement with C++11 attributes 2012-04-14 00:33:13 +00:00
ParseTemplate.cpp Parser: Don't manage TemplateAnnotationIds in a delayed cleanup pool. 2012-04-14 12:14:03 +00:00
ParseTentative.cpp In Parser::isCXXDeclarationSpecifier, consider a non-type identifier 2012-04-19 23:17:45 +00:00
Parser.cpp Parser: Don't manage TemplateAnnotationIds in a delayed cleanup pool. 2012-04-14 12:14:03 +00:00
RAIIObjectsForParser.h Rename Diagnostic to DiagnosticsEngine as per issue 5397 2011-09-25 23:23:43 +00:00