llvm-project/clang/lib/Parse
Benjamin Kramer 8610cae98a Sema: Don't emit a missing prototype warning for deleted functions.
This is a bit more involved than I anticipated, so here's a breakdown
of the changes:
  1. Call ActOnFinishFunctionBody _after_ we parsed =default and
     =delete specifiers. Saying that we finished the body before parsing
     =default is just wrong. Changing this allows us to use isDefaulted
     and isDeleted on a decl in ActOnFinishFunctionBody.
  2. Check for -Wmissing-prototypes after we parsed the function body.
  3. Disable -Wmissing-prototypes when the Decl isDeleted.

llvm-svn: 232040
2015-03-12 14:28:47 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
Makefile
ParseAST.cpp Remove unneeded include of DeclCXX.h from libParse. 2014-12-28 01:52:28 +00:00
ParseCXXInlineMethods.cpp FIX PR 18432, default args, friends & late-parsed members. 2015-02-19 14:03:22 +00:00
ParseDecl.cpp Use Sema's PrintingPolicy when diagnosing DeclSpecs. 2015-03-12 14:28:38 +00:00
ParseDeclCXX.cpp Sema: Properly track mangling number/name for linkage for using decls 2015-03-11 06:45:39 +00:00
ParseExpr.cpp Sema: Parenthesized bound destructor member expressions can be called 2015-02-25 17:36:15 +00:00
ParseExprCXX.cpp Make Token a real POD type. 2015-03-08 18:11:59 +00:00
ParseInit.cpp Enable ActOnIdExpression to use delayed typo correction for non-C++ code 2014-11-21 18:48:04 +00:00
ParseObjc.cpp Modified the Objective-C lexer and parser (only 2014-12-09 23:47:56 +00:00
ParseOpenMP.cpp Enable ActOnIdExpression to use delayed typo correction for non-C++ code 2014-11-21 18:48:04 +00:00
ParsePragma.cpp Enable pragma comment processing for PS4. Original patch by Yunzhong Gao! 2015-01-28 18:26:15 +00:00
ParseStmt.cpp Fix a theoretical bug when ParseCompoundStatement() returns StmtError. 2015-03-09 03:17:15 +00:00
ParseStmtAsm.cpp Adding option -fno-inline-asm to disallow inline asm 2015-01-16 23:05:28 +00:00
ParseTemplate.cpp Diagnose function template definitions inside functions 2014-12-15 23:16:32 +00:00
ParseTentative.cpp Revert "Improve declaration / expression disambiguation around ptr-operators, and use" 2015-02-23 22:36:28 +00:00
Parser.cpp Sema: Don't emit a missing prototype warning for deleted functions. 2015-03-12 14:28:47 +00:00
RAIIObjectsForParser.h Removing LLVM_DELETED_FUNCTION, as MSVC 2012 was the last reason for requiring the macro. NFC; Clang edition. 2015-02-15 22:54:08 +00:00