[PATCH] D45815: [libclang] Allow skipping function bodies in preamble only
Nikolai Kosjar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 27 07:30:56 PDT 2018
nik added a comment.
Trying to format the diff in the previous comment:
--- a/lib/Parse/ParseCXXInlineMethods.cpp
+++ b/lib/Parse/ParseCXXInlineMethods.cpp
@@ -102,9 +102,14 @@ NamedDecl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS,
}
if (SkipFunctionBodies != SkipFunctionBodiesKind::None &&
+ TemplateInfo.Kind == ParsedTemplateInfo::NonTemplate &&
+ !isa<ClassTemplateDecl>(getCurrentClass().TagOrTemplate) &&
+ !isa<ClassTemplateSpecializationDecl>(getCurrentClass().TagOrTemplate) &&
+ !isa<ClassTemplatePartialSpecializationDecl>(
+ getCurrentClass().TagOrTemplate) &&
(!FnD || Actions.canSkipFunctionBody(FnD)) && trySkippingFunctionBody()) {
Actions.ActOnSkippedFunctionBody(FnD);
Repository:
rC Clang
https://reviews.llvm.org/D45815
More information about the cfe-commits
mailing list