From: Richard Smith Date: Wed, 30 May 2012 23:55:51 +0000 (+0000) Subject: Only visit default arguments for template declarations when visiting the template... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fada8e820f2fd1b4cd38e48c8986110e87c5915;p=clang Only visit default arguments for template declarations when visiting the template declaration which introduced them. Patch by Yang Chen! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157723 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/RecursiveASTVisitor.h b/include/clang/AST/RecursiveASTVisitor.h index 011dda56bd..72f24a09a5 100644 --- a/include/clang/AST/RecursiveASTVisitor.h +++ b/include/clang/AST/RecursiveASTVisitor.h @@ -1486,7 +1486,7 @@ DEF_TRAVERSE_DECL(TemplateTemplateParmDecl, { // D is the "T" in something like // template