clang 20.0.0git
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"

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

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

Macros

#define PTR(CLASS)   typename Ptr<CLASS>::type
 
#define DISPATCH(NAME, CLASS)
 
#define ABSTRACT_COMMENT(COMMENT)
 
#define COMMENT(CLASS, PARENT)
 
#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 
)
Value:
case CommentKind::CLASS: \
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)...)
StringRef P
#define PTR(CLASS)

Definition at line 23 of file CommentVisitor.h.

◆ PTR

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

Definition at line 22 of file CommentVisitor.h.