Skip to content
Snippets Groups Projects
Commit 1e029812 authored by Axel Naumann's avatar Axel Naumann
Browse files

The RecursiveASTVisitor now calls Visit of bases itself.

parent 135fcc89
Branches
Tags
No related merge requests found
...@@ -149,16 +149,12 @@ namespace cling { ...@@ -149,16 +149,12 @@ namespace cling {
if (!D->hasAttr<AnnotateAttr>()) if (!D->hasAttr<AnnotateAttr>())
return true; return true;
VisitDecl(D);
if (ClassTemplateDecl* TmplD = D->getDescribedClassTemplate()) if (ClassTemplateDecl* TmplD = D->getDescribedClassTemplate())
return VisitTemplateDecl(TmplD); return VisitTemplateDecl(TmplD);
return true; return true;
} }
bool VisitTemplateTypeParmDecl(TemplateTypeParmDecl* D) { bool VisitTemplateTypeParmDecl(TemplateTypeParmDecl* D) {
VisitDecl(D);
if (m_IsStoringState) if (m_IsStoringState)
return true; return true;
...@@ -172,8 +168,6 @@ namespace cling { ...@@ -172,8 +168,6 @@ namespace cling {
!D->getTemplatedDecl()->hasAttr<AnnotateAttr>()) !D->getTemplatedDecl()->hasAttr<AnnotateAttr>())
return true; return true;
VisitDecl(D);
// If we have a definition we might be about to re-#include the // If we have a definition we might be about to re-#include the
// same header containing definition that was #included previously, // same header containing definition that was #included previously,
// i.e. we might have multiple fwd decls for the same template. // i.e. we might have multiple fwd decls for the same template.
...@@ -190,8 +184,6 @@ namespace cling { ...@@ -190,8 +184,6 @@ namespace cling {
} }
bool VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl* D) { bool VisitTemplateTemplateParmDecl(TemplateTemplateParmDecl* D) {
VisitDecl(D);
if (m_IsStoringState) if (m_IsStoringState)
return true; return true;
...@@ -201,8 +193,6 @@ namespace cling { ...@@ -201,8 +193,6 @@ namespace cling {
} }
bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl* D) { bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl* D) {
VisitDecl(D);
if (m_IsStoringState) if (m_IsStoringState)
return true; return true;
...@@ -212,8 +202,6 @@ namespace cling { ...@@ -212,8 +202,6 @@ namespace cling {
} }
bool VisitParmVarDecl(ParmVarDecl* D) { bool VisitParmVarDecl(ParmVarDecl* D) {
VisitDecl(D);
if (m_IsStoringState) if (m_IsStoringState)
return true; return true;
...@@ -223,8 +211,6 @@ namespace cling { ...@@ -223,8 +211,6 @@ namespace cling {
} }
bool VisitEnumDecl(EnumDecl* D) { bool VisitEnumDecl(EnumDecl* D) {
VisitDecl(D);
if (m_IsStoringState) if (m_IsStoringState)
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment