[PATCH] D34030: Fix the postorder visting of the ClassTemplateSpecializationDecl nodes in the RecursiveASTVisitor.
Peter Siket via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 24 23:55:50 PDT 2017
MontyKutyi updated this revision to Diff 108013.
MontyKutyi added a comment.
Updated the comment.
https://reviews.llvm.org/D34030
Files:
include/clang/AST/RecursiveASTVisitor.h
Index: include/clang/AST/RecursiveASTVisitor.h
===================================================================
--- include/clang/AST/RecursiveASTVisitor.h
+++ include/clang/AST/RecursiveASTVisitor.h
@@ -1802,11 +1802,10 @@
TRY_TO(TraverseNestedNameSpecifierLoc(D->getQualifierLoc())); \
if (!getDerived().shouldVisitTemplateInstantiations() && \
D->getTemplateSpecializationKind() != TSK_ExplicitSpecialization) \
- /* Returning from here skips traversing the \
- declaration context of the *TemplateSpecializationDecl \
- (embedded in the DEF_TRAVERSE_DECL() macro) \
- which contains the instantiated members of the template. */ \
- return true; \
+ /* Skip traversing the declaration context of the \
+ *TemplateSpecializationDecl (embedded in the DEF_TRAVERSE_DECL() \
+ macro) which contains the instantiated members of the template. */ \
+ ShouldVisitChildren = false; \
})
DEF_TRAVERSE_TMPL_SPEC_DECL(Class)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34030.108013.patch
Type: text/x-patch
Size: 1255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170725/ade36757/attachment.bin>
More information about the cfe-commits
mailing list