The RecursiveASTVisitor now calls Visit of bases itself.
This commit is contained in:
parent
1718483b7e
commit
13dae8ee6b
@ -149,16 +149,12 @@ namespace cling {
|
||||
if (!D->hasAttr<AnnotateAttr>())
|
||||
return true;
|
||||
|
||||
VisitDecl(D);
|
||||
|
||||
if (ClassTemplateDecl* TmplD = D->getDescribedClassTemplate())
|
||||
return VisitTemplateDecl(TmplD);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool VisitTemplateTypeParmDecl(TemplateTypeParmDecl* D) {
|
||||
VisitDecl(D);
|
||||
|
||||
if (m_IsStoringState)
|
||||
return true;
|
||||
|
||||
@ -172,8 +168,6 @@ namespace cling {
|
||||
!D->getTemplatedDecl()->hasAttr<AnnotateAttr>())
|
||||
return true;
|
||||
|
||||
VisitDecl(D);
|
||||
|
||||
// If we have a definition we might be about to re-#include the
|
||||
// same header containing definition that was #included previously,
|
||||
// i.e. we might have multiple fwd decls for the same template.
|
||||
@ -190,8 +184,6 @@ namespace cling {
|
||||
}
|
||||
|
||||
bool VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl* D) {
|
||||
VisitDecl(D);
|
||||
|
||||
if (m_IsStoringState)
|
||||
return true;
|
||||
|
||||
@ -201,8 +193,6 @@ namespace cling {
|
||||
}
|
||||
|
||||
bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl* D) {
|
||||
VisitDecl(D);
|
||||
|
||||
if (m_IsStoringState)
|
||||
return true;
|
||||
|
||||
@ -212,8 +202,6 @@ namespace cling {
|
||||
}
|
||||
|
||||
bool VisitParmVarDecl(ParmVarDecl* D) {
|
||||
VisitDecl(D);
|
||||
|
||||
if (m_IsStoringState)
|
||||
return true;
|
||||
|
||||
@ -223,8 +211,6 @@ namespace cling {
|
||||
}
|
||||
|
||||
bool VisitEnumDecl(EnumDecl* D) {
|
||||
VisitDecl(D);
|
||||
|
||||
if (m_IsStoringState)
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user