[PATCH] D20821: Fix a few issues while skipping function bodies
Olivier Goffart via cfe-commits
cfe-commits at lists.llvm.org
Tue May 31 10:03:13 PDT 2016
ogoffart created this revision.
ogoffart added reviewers: cfe-commits, rsmith, akyrtzi.
Herald added a subscriber: klimek.
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.
http://reviews.llvm.org/D20821
Files:
lib/Parse/ParseCXXInlineMethods.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/ParseStmt.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaDecl.cpp
unittests/Tooling/ToolingTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20821.59084.patch
Type: text/x-patch
Size: 8258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160531/aead8a58/attachment-0001.bin>
More information about the cfe-commits
mailing list