clang API Documentation

Classes | Namespaces | Defines
StmtVisitor.h File Reference
#include "clang/AST/ExprCXX.h"
#include "clang/AST/ExprObjC.h"
#include "clang/AST/StmtCXX.h"
#include "clang/AST/StmtObjC.h"
#include "clang/AST/StmtNodes.inc"
Include dependency graph for StmtVisitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  clang::make_ptr< T >
struct  clang::make_const_ptr< T >
class  clang::StmtVisitorBase< Ptr, ImplClass, RetTy >
class  clang::StmtVisitor< ImplClass, RetTy >
class  clang::ConstStmtVisitor< ImplClass, RetTy >

Namespaces

namespace  clang

Defines

#define PTR(CLASS)   typename Ptr<CLASS>::type
#define DISPATCH(NAME, CLASS)   return static_cast<ImplClass*>(this)->Visit ## NAME(static_cast<PTR(CLASS)>(S))
#define ABSTRACT_STMT(STMT)
#define STMT(CLASS, PARENT)   case Stmt::CLASS ## Class: DISPATCH(CLASS, CLASS);
#define STMT(CLASS, PARENT)   RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }
#define BINOP_FALLBACK(NAME)
#define CAO_FALLBACK(NAME)
#define UNARYOP_FALLBACK(NAME)

Define Documentation

#define ABSTRACT_STMT (   STMT)
#define BINOP_FALLBACK (   NAME)
Value:
RetTy VisitBin ## NAME(PTR(BinaryOperator) S) { \
    DISPATCH(BinaryOperator, BinaryOperator); \
  }

Definition at line 116 of file StmtVisitor.h.

#define CAO_FALLBACK (   NAME)
Value:
RetTy VisitBin ## NAME(PTR(CompoundAssignOperator) S) { \
    DISPATCH(CompoundAssignOperator, CompoundAssignOperator); \
  }

Referenced by clang::StmtVisitorBase< make_ptr, ASTNodeImporter, Stmt * >::BINOP_FALLBACK().

#define DISPATCH (   NAME,
  CLASS 
)    return static_cast<ImplClass*>(this)->Visit ## NAME(static_cast<PTR(CLASS)>(S))
#define PTR (   CLASS)    typename Ptr<CLASS>::type
#define STMT (   CLASS,
  PARENT 
)    case Stmt::CLASS ## Class: DISPATCH(CLASS, CLASS);

Definition at line 110 of file StmtVisitor.h.

#define STMT (   CLASS,
  PARENT 
)    RetTy Visit ## CLASS(PTR(CLASS) S) { DISPATCH(PARENT, PARENT); }

Definition at line 110 of file StmtVisitor.h.

#define UNARYOP_FALLBACK (   NAME)
Value:
RetTy VisitUnary ## NAME(PTR(UnaryOperator) S) { \
    DISPATCH(UnaryOperator, UnaryOperator);    \
  }

Referenced by clang::StmtVisitorBase< make_ptr, ASTNodeImporter, Stmt * >::BINOP_FALLBACK().