[PATCH] D36998: [AST] Make TraverseTemplateParameterListHelper public
Johannes Altmanninger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 02:09:39 PDT 2017
johannes created this revision.
This is useful for clients that want to create a visitor
that visits template parameters before visiting the declaration
that uses them.
https://reviews.llvm.org/D36998
Files:
include/clang/AST/RecursiveASTVisitor.h
Index: include/clang/AST/RecursiveASTVisitor.h
===================================================================
--- include/clang/AST/RecursiveASTVisitor.h
+++ include/clang/AST/RecursiveASTVisitor.h
@@ -497,10 +497,10 @@
bool Visit##CLASS##Decl(CLASS##Decl *D) { return true; }
#include "clang/AST/DeclNodes.inc"
-private:
// These are helper methods used by more than one Traverse* method.
bool TraverseTemplateParameterListHelper(TemplateParameterList *TPL);
+private:
// Traverses template parameter lists of either a DeclaratorDecl or TagDecl.
template <typename T>
bool TraverseDeclTemplateParameterLists(T *D);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36998.112129.patch
Type: text/x-patch
Size: 644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170822/31c221cc/attachment.bin>
More information about the cfe-commits
mailing list