hanchenye-llvm-project/clang/lib/Parse
Richard Smith 7b8c3c91f4 PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this:
template<typename T> struct S { } f() { return 0; }

This case now produces a missing ';' diagnostic, since that seems like a much more likely error than an attempt to declare a function or variable in addition to the class template.

Treat this 

llvm-svn: 135195
2011-07-14 21:35:26 +00:00
..
CMakeLists.txt CMake: LLVM_NO_RTTI must be obsolete now! 2011-02-10 09:15:32 +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 Build up statistics about the work done for analysis based warnings. 2011-07-06 16:21:37 +00:00
ParseCXXInlineMethods.cpp Implement support for C++11 in-class initialization of non-static data members. 2011-06-11 17:19:42 +00:00
ParseDecl.cpp Add 'mutable' to the function declarator chunk, to be used when 2011-07-13 21:47:47 +00:00
ParseDeclCXX.cpp PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this: 2011-07-14 21:35:26 +00:00
ParseExpr.cpp Convert terminology in the Lexer from 'instantiate' and variants to 2011-07-14 08:20:40 +00:00
ParseExprCXX.cpp Properly implement the scope restriction on the NRVO for 2011-07-06 22:04:06 +00:00
ParseInit.cpp fix a bunch of comment typos found by codespell. Patch by 2011-04-15 05:22:18 +00:00
ParseObjc.cpp Introduce Declarator::ObjCCatchContext, this will result in correct error for 'auto' in obj-c catch. 2011-07-01 22:22:40 +00:00
ParsePragma.cpp Remove unused but set variable. 2011-05-03 18:46:17 +00:00
ParsePragma.h Recognize gcc's ms_struct pragma (and ignore for now). 2011-04-25 18:49:15 +00:00
ParseStmt.cpp Move the rest of the preprocessor terminology from 'instantiate' and 2011-07-14 08:20:46 +00:00
ParseTemplate.cpp Introduce DelayedCleanupPool useful for simplifying clean-up of certain resources that, while their 2011-06-22 06:09:49 +00:00
ParseTentative.cpp Introduce DelayedCleanupPool useful for simplifying clean-up of certain resources that, while their 2011-06-22 06:09:49 +00:00
Parser.cpp Some documentation fixes for the parser, from John Freeman 2011-07-05 17:13:11 +00:00
RAIIObjectsForParser.h Parsing/AST support for Structured Exception Handling 2011-04-28 01:08:34 +00:00