clang 22.0.0git
DeclVisitor.h File Reference
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclFriend.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclOpenACC.h"
#include "clang/AST/DeclOpenMP.h"
#include "clang/AST/DeclTemplate.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/AST/DeclNodes.inc"

Go to the source code of this file.

Classes

class  clang::declvisitor::Base< Ptr, ImplClass, RetTy >
 A simple visitor class that helps create declaration visitors. More...
class  clang::DeclVisitor< ImplClass, RetTy >
 A simple visitor class that helps create declaration visitors. More...
class  clang::ConstDeclVisitor< ImplClass, RetTy >
 A simple visitor class that helps create declaration visitors. More...

Namespaces

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

Macros

#define PTR(CLASS)
#define DISPATCH(NAME, CLASS)
#define DECL(DERIVED, BASE)
#define ABSTRACT_DECL(DECL)
#define DECL(DERIVED, BASE)

Macro Definition Documentation

◆ ABSTRACT_DECL

#define ABSTRACT_DECL ( DECL)

◆ DECL [1/2]

#define DECL ( DERIVED,
BASE )
Value:
case Decl::DERIVED: DISPATCH(DERIVED##Decl, DERIVED##Decl);
#define DISPATCH(NAME)
Definition AttrVisitor.h:28

Definition at line 50 of file DeclVisitor.h.

◆ DECL [2/2]

#define DECL ( DERIVED,
BASE )
Value:
RetTy Visit##DERIVED##Decl(PTR(DERIVED##Decl) D) { DISPATCH(BASE, BASE); }
#define PTR(CLASS)
Definition AttrVisitor.h:27

Definition at line 50 of file DeclVisitor.h.

◆ DISPATCH

#define DISPATCH ( NAME,
CLASS )
Value:
return static_cast<ImplClass*>(this)->Visit##NAME(static_cast<PTR(CLASS)>(D))

Definition at line 35 of file DeclVisitor.h.

◆ PTR

#define PTR ( CLASS)
Value:
typename Ptr<CLASS>::type

Definition at line 34 of file DeclVisitor.h.