clang  8.0.0svn
Classes | Namespaces | Macros
CommentVisitor.h File Reference
#include "clang/AST/Comment.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/AST/CommentNodes.inc"
Include dependency graph for CommentVisitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::comments::CommentVisitorBase< Ptr, ImplClass, RetTy, ParamTys >
 
class  clang::comments::CommentVisitor< ImplClass, RetTy, ParamTys >
 
class  clang::comments::ConstCommentVisitor< ImplClass, RetTy, ParamTys >
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::comments
 

Macros

#define PTR(CLASS)   typename Ptr<CLASS>::type
 
#define DISPATCH(NAME, CLASS)
 
#define ABSTRACT_COMMENT(COMMENT)
 
#define COMMENT(CLASS, PARENT)   case Comment::CLASS##Kind: DISPATCH(CLASS, CLASS);
 
#define ABSTRACT_COMMENT(COMMENT)   COMMENT
 
#define COMMENT(CLASS, PARENT)   RetTy visit##CLASS(PTR(CLASS) C, ParamTys... P) { DISPATCH(PARENT, PARENT); }
 

Macro Definition Documentation

◆ ABSTRACT_COMMENT [1/2]

#define ABSTRACT_COMMENT (   COMMENT)

Definition at line 45 of file CommentVisitor.h.

◆ ABSTRACT_COMMENT [2/2]

#define ABSTRACT_COMMENT (   COMMENT)    COMMENT

Definition at line 45 of file CommentVisitor.h.

◆ COMMENT [1/2]

#define COMMENT (   CLASS,
  PARENT 
)    case Comment::CLASS##Kind: DISPATCH(CLASS, CLASS);

Definition at line 46 of file CommentVisitor.h.

◆ COMMENT [2/2]

#define COMMENT (   CLASS,
  PARENT 
)    RetTy visit##CLASS(PTR(CLASS) C, ParamTys... P) { DISPATCH(PARENT, PARENT); }

Definition at line 46 of file CommentVisitor.h.

◆ DISPATCH

#define DISPATCH (   NAME,
  CLASS 
)
Value:
return static_cast<ImplClass *>(this)->visit##NAME( \
static_cast<PTR(CLASS)>(C), std::forward<ParamTys>(P)...)
#define PTR(CLASS)
StringRef P

Definition at line 24 of file CommentVisitor.h.

◆ PTR

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

Definition at line 23 of file CommentVisitor.h.

Referenced by clang::AtomicExpr::getPtr().