clang 20.0.0git
Classes | Namespaces | Macros
DynamicRecursiveASTVisitor.h File Reference
#include "clang/AST/Attr.h"
#include "clang/AST/ExprConcepts.h"
#include "clang/AST/TypeLoc.h"
#include "clang/AST/DeclNodes.inc"
#include "clang/AST/StmtNodes.inc"
#include "clang/AST/TypeNodes.inc"
#include "clang/AST/TypeLocNodes.def"

Go to the source code of this file.

Classes

class  clang::DynamicRecursiveASTVisitor
 Recursive AST visitor that supports extension via dynamic dispatch. More...
 

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 

Macros

#define DEF_TRAVERSE_TMPL_INST(kind)    virtual bool TraverseTemplateInstantiations(kind##TemplateDecl *D);
 
#define ABSTRACT_DECL(DECL)
 
#define DECL(CLASS, BASE)   virtual bool Traverse##CLASS##Decl(CLASS##Decl *D);
 
#define DECL(CLASS, BASE)
 
#define ABSTRACT_STMT(STMT)
 
#define STMT(CLASS, PARENT)   virtual bool Traverse##CLASS(CLASS *S);
 
#define STMT(CLASS, PARENT)
 
#define ABSTRACT_TYPE(CLASS, BASE)
 
#define TYPE(CLASS, BASE)   virtual bool Traverse##CLASS##Type(CLASS##Type *T);
 
#define TYPE(CLASS, BASE)
 
#define ABSTRACT_TYPELOC(CLASS, BASE)
 
#define TYPELOC(CLASS, BASE)    virtual bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);
 
#define TYPELOC(CLASS, BASE)
 

Macro Definition Documentation

◆ ABSTRACT_DECL

#define ABSTRACT_DECL (   DECL)

Definition at line 234 of file DynamicRecursiveASTVisitor.h.

◆ ABSTRACT_STMT

#define ABSTRACT_STMT (   STMT)

Definition at line 244 of file DynamicRecursiveASTVisitor.h.

◆ ABSTRACT_TYPE

#define ABSTRACT_TYPE (   CLASS,
  BASE 
)

Definition at line 254 of file DynamicRecursiveASTVisitor.h.

◆ ABSTRACT_TYPELOC

#define ABSTRACT_TYPELOC (   CLASS,
  BASE 
)

Definition at line 264 of file DynamicRecursiveASTVisitor.h.

◆ DECL [1/2]

#define DECL (   CLASS,
  BASE 
)    virtual bool Traverse##CLASS##Decl(CLASS##Decl *D);

Definition at line 238 of file DynamicRecursiveASTVisitor.h.

◆ DECL [2/2]

#define DECL (   CLASS,
  BASE 
)
Value:
bool WalkUpFrom##CLASS##Decl(CLASS##Decl *D); \
virtual bool Visit##CLASS##Decl(CLASS##Decl *D) { return true; }
const Decl * D

Definition at line 238 of file DynamicRecursiveASTVisitor.h.

◆ DEF_TRAVERSE_TMPL_INST

#define DEF_TRAVERSE_TMPL_INST (   kind)     virtual bool TraverseTemplateInstantiations(kind##TemplateDecl *D);

Definition at line 226 of file DynamicRecursiveASTVisitor.h.

◆ STMT [1/2]

#define STMT (   CLASS,
  PARENT 
)    virtual bool Traverse##CLASS(CLASS *S);

Definition at line 248 of file DynamicRecursiveASTVisitor.h.

◆ STMT [2/2]

#define STMT (   CLASS,
  PARENT 
)
Value:
bool WalkUpFrom##CLASS(CLASS *S); \
virtual bool Visit##CLASS(CLASS *S) { return true; }

Definition at line 248 of file DynamicRecursiveASTVisitor.h.

◆ TYPE [1/2]

#define TYPE (   CLASS,
  BASE 
)    virtual bool Traverse##CLASS##Type(CLASS##Type *T);

Definition at line 258 of file DynamicRecursiveASTVisitor.h.

◆ TYPE [2/2]

#define TYPE (   CLASS,
  BASE 
)
Value:
bool WalkUpFrom##CLASS##Type(CLASS##Type *T); \
virtual bool Visit##CLASS##Type(CLASS##Type *T) { return true; }
MatchType Type

Definition at line 258 of file DynamicRecursiveASTVisitor.h.

◆ TYPELOC [1/2]

#define TYPELOC (   CLASS,
  BASE 
)     virtual bool Traverse##CLASS##TypeLoc(CLASS##TypeLoc TL);

Definition at line 269 of file DynamicRecursiveASTVisitor.h.

◆ TYPELOC [2/2]

#define TYPELOC (   CLASS,
  BASE 
)
Value:
bool WalkUpFrom##CLASS##TypeLoc(CLASS##TypeLoc TL); \
virtual bool Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { return true; }

Definition at line 269 of file DynamicRecursiveASTVisitor.h.