clang API Documentation

Classes | Namespaces | Defines
TypeVisitor.h File Reference
#include "clang/AST/Type.h"
#include "clang/AST/TypeNodes.def"
Include dependency graph for TypeVisitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::TypeVisitor< ImplClass, RetTy >
 An operation on a type. More...

Namespaces

namespace  clang

Defines

#define DISPATCH(CLASS)
#define ABSTRACT_TYPE(CLASS, PARENT)
#define TYPE(CLASS, PARENT)   case Type::CLASS: DISPATCH(CLASS##Type);
#define TYPE(CLASS, PARENT)

Define Documentation

#define ABSTRACT_TYPE (   CLASS,
  PARENT 
)
#define DISPATCH (   CLASS)
Value:
return static_cast<ImplClass*>(this)-> \
           Visit##CLASS(static_cast<const CLASS*>(T))

Definition at line 21 of file TypeVisitor.h.

#define TYPE (   CLASS,
  PARENT 
)    case Type::CLASS: DISPATCH(CLASS##Type);

Definition at line 81 of file TypeVisitor.h.

#define TYPE (   CLASS,
  PARENT 
)
Value:
RetTy Visit##CLASS##Type(const CLASS##Type *T) { \
  DISPATCH(PARENT);                                                          \
}

Definition at line 81 of file TypeVisitor.h.