llvm-project/clang/lib/Parse
Olivier Goffart f9e890cbf9 Fix a few issues while skipping function bodies
- In functions with try { } catch { }, only the try block would be
   skipped, not the catch blocks

 - The template functions would still be parsed.

 - The initializers within a constructor would still be parsed.

 - The inline functions within class would still be stored, only to be
   discared later.

 - Invalid code with try would assert (as in "int foo() try assert_here")

This attempt to do even less while skipping function bodies.

Differential Revision: http://reviews.llvm.org/D20821

llvm-svn: 272963
2016-06-16 21:40:06 +00:00
..
CMakeLists.txt [CMake] Reorder libdeps by alphabetical order. 2014-07-14 04:59:27 +00:00
ParseAST.cpp Prune four superfluous ExternalSemaSource.h includes and one forward declaration in Sema.h 2016-05-13 14:53:19 +00:00
ParseCXXInlineMethods.cpp Fix a few issues while skipping function bodies 2016-06-16 21:40:06 +00:00
ParseDecl.cpp [Parser] Handle __pragma(pack, etc. after type definitions 2016-06-14 03:20:28 +00:00
ParseDeclCXX.cpp [Parser] Handle __pragma(pack, etc. after type definitions 2016-06-14 03:20:28 +00:00
ParseExpr.cpp [Parser] Only correct delayed typos when needed 2016-06-13 20:56:45 +00:00
ParseExprCXX.cpp [Parser] Fix look ahead after EOF while parsing objc message and lambdas 2016-05-31 18:46:31 +00:00
ParseInit.cpp OpaquePtr: Use nullptr construction for ParsedType OpaquePtr typedef 2016-01-15 23:43:34 +00:00
ParseObjc.cpp Fix a few issues while skipping function bodies 2016-06-16 21:40:06 +00:00
ParseOpenMP.cpp [OpenMP] Parsing and sema support for the from clause 2016-05-26 17:49:04 +00:00
ParsePragma.cpp Add loop pragma for Loop Distribution 2016-06-14 12:04:26 +00:00
ParseStmt.cpp Fix a few issues while skipping function bodies 2016-06-16 21:40:06 +00:00
ParseStmtAsm.cpp Fix a funny Dvorak typo. 2016-05-19 00:16:09 +00:00
ParseTemplate.cpp Revert accidential "[MSVC] Late parsing of in-class defined member functions in template" 2016-06-15 11:24:54 +00:00
ParseTentative.cpp [MSVC] Implementation of __unaligned as a proper type qualifier 2016-05-11 18:38:21 +00:00
Parser.cpp Fix a few issues while skipping function bodies 2016-06-16 21:40:06 +00:00
RAIIObjectsForParser.h Add a new error for unexpected semi-colon before closing delimiter. 2015-05-12 21:36:35 +00:00