clang 19.0.0git
Public Member Functions | List of all members
clang::comments::Sema Class Reference

#include "clang/AST/CommentSema.h"

Public Member Functions

 Sema (llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, DiagnosticsEngine &Diags, CommandTraits &Traits, const Preprocessor *PP)
 
void setDecl (const Decl *D)
 
template<typename T >
ArrayRef< TcopyArray (ArrayRef< T > Source)
 Returns a copy of array, owned by Sema's allocator.
 
ParagraphCommentactOnParagraphComment (ArrayRef< InlineContentComment * > Content)
 
BlockCommandCommentactOnBlockCommandStart (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
 
void actOnBlockCommandArgs (BlockCommandComment *Command, ArrayRef< BlockCommandComment::Argument > Args)
 
void actOnBlockCommandFinish (BlockCommandComment *Command, ParagraphComment *Paragraph)
 
ParamCommandCommentactOnParamCommandStart (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
 
void actOnParamCommandDirectionArg (ParamCommandComment *Command, SourceLocation ArgLocBegin, SourceLocation ArgLocEnd, StringRef Arg)
 
void actOnParamCommandParamNameArg (ParamCommandComment *Command, SourceLocation ArgLocBegin, SourceLocation ArgLocEnd, StringRef Arg)
 
void actOnParamCommandFinish (ParamCommandComment *Command, ParagraphComment *Paragraph)
 
TParamCommandCommentactOnTParamCommandStart (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
 
void actOnTParamCommandParamNameArg (TParamCommandComment *Command, SourceLocation ArgLocBegin, SourceLocation ArgLocEnd, StringRef Arg)
 
void actOnTParamCommandFinish (TParamCommandComment *Command, ParagraphComment *Paragraph)
 
InlineCommandCommentactOnInlineCommand (SourceLocation CommandLocBegin, SourceLocation CommandLocEnd, unsigned CommandID, ArrayRef< Comment::Argument > Args)
 
InlineContentCommentactOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, StringRef CommandName)
 
InlineContentCommentactOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID)
 
TextCommentactOnText (SourceLocation LocBegin, SourceLocation LocEnd, StringRef Text)
 
VerbatimBlockCommentactOnVerbatimBlockStart (SourceLocation Loc, unsigned CommandID)
 
VerbatimBlockLineCommentactOnVerbatimBlockLine (SourceLocation Loc, StringRef Text)
 
void actOnVerbatimBlockFinish (VerbatimBlockComment *Block, SourceLocation CloseNameLocBegin, StringRef CloseName, ArrayRef< VerbatimBlockLineComment * > Lines)
 
VerbatimLineCommentactOnVerbatimLine (SourceLocation LocBegin, unsigned CommandID, SourceLocation TextBegin, StringRef Text)
 
HTMLStartTagCommentactOnHTMLStartTagStart (SourceLocation LocBegin, StringRef TagName)
 
void actOnHTMLStartTagFinish (HTMLStartTagComment *Tag, ArrayRef< HTMLStartTagComment::Attribute > Attrs, SourceLocation GreaterLoc, bool IsSelfClosing)
 
HTMLEndTagCommentactOnHTMLEndTag (SourceLocation LocBegin, SourceLocation LocEnd, StringRef TagName)
 
FullCommentactOnFullComment (ArrayRef< BlockContentComment * > Blocks)
 

Detailed Description

Definition at line 32 of file CommentSema.h.

Constructor & Destructor Documentation

◆ Sema()

clang::comments::Sema::Sema ( llvm::BumpPtrAllocator &  Allocator,
const SourceManager SourceMgr,
DiagnosticsEngine Diags,
CommandTraits Traits,
const Preprocessor PP 
)

Definition at line 28 of file CommentSema.cpp.

Member Function Documentation

◆ actOnBlockCommandArgs()

void clang::comments::Sema::actOnBlockCommandArgs ( BlockCommandComment Command,
ArrayRef< BlockCommandComment::Argument Args 
)

◆ actOnBlockCommandFinish()

void clang::comments::Sema::actOnBlockCommandFinish ( BlockCommandComment Command,
ParagraphComment Paragraph 
)

◆ actOnBlockCommandStart()

BlockCommandComment * clang::comments::Sema::actOnBlockCommandStart ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
)

Definition at line 50 of file CommentSema.cpp.

Referenced by clang::comments::Parser::parseBlockCommand().

◆ actOnFullComment()

FullComment * clang::comments::Sema::actOnFullComment ( ArrayRef< BlockContentComment * >  Blocks)

◆ actOnHTMLEndTag()

HTMLEndTagComment * clang::comments::Sema::actOnHTMLEndTag ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
StringRef  TagName 
)

◆ actOnHTMLStartTagFinish()

void clang::comments::Sema::actOnHTMLStartTagFinish ( HTMLStartTagComment Tag,
ArrayRef< HTMLStartTagComment::Attribute Attrs,
SourceLocation  GreaterLoc,
bool  IsSelfClosing 
)

◆ actOnHTMLStartTagStart()

HTMLStartTagComment * clang::comments::Sema::actOnHTMLStartTagStart ( SourceLocation  LocBegin,
StringRef  TagName 
)

Definition at line 431 of file CommentSema.cpp.

Referenced by clang::comments::Parser::parseHTMLStartTag().

◆ actOnInlineCommand()

InlineCommandComment * clang::comments::Sema::actOnInlineCommand ( SourceLocation  CommandLocBegin,
SourceLocation  CommandLocEnd,
unsigned  CommandID,
ArrayRef< Comment::Argument Args 
)

◆ actOnParagraphComment()

ParagraphComment * clang::comments::Sema::actOnParagraphComment ( ArrayRef< InlineContentComment * >  Content)

◆ actOnParamCommandDirectionArg()

void clang::comments::Sema::actOnParamCommandDirectionArg ( ParamCommandComment Command,
SourceLocation  ArgLocBegin,
SourceLocation  ArgLocEnd,
StringRef  Arg 
)

◆ actOnParamCommandFinish()

void clang::comments::Sema::actOnParamCommandFinish ( ParamCommandComment Command,
ParagraphComment Paragraph 
)

◆ actOnParamCommandParamNameArg()

void clang::comments::Sema::actOnParamCommandParamNameArg ( ParamCommandComment Command,
SourceLocation  ArgLocBegin,
SourceLocation  ArgLocEnd,
StringRef  Arg 
)

◆ actOnParamCommandStart()

ParamCommandComment * clang::comments::Sema::actOnParamCommandStart ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
)

◆ actOnText()

TextComment * clang::comments::Sema::actOnText ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
StringRef  Text 
)

Definition at line 387 of file CommentSema.cpp.

References Text.

Referenced by clang::comments::Parser::parseParagraphOrBlockCommand().

◆ actOnTParamCommandFinish()

void clang::comments::Sema::actOnTParamCommandFinish ( TParamCommandComment Command,
ParagraphComment Paragraph 
)

◆ actOnTParamCommandParamNameArg()

void clang::comments::Sema::actOnTParamCommandParamNameArg ( TParamCommandComment Command,
SourceLocation  ArgLocBegin,
SourceLocation  ArgLocEnd,
StringRef  Arg 
)

◆ actOnTParamCommandStart()

TParamCommandComment * clang::comments::Sema::actOnTParamCommandStart ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
)

◆ actOnUnknownCommand() [1/2]

InlineContentComment * clang::comments::Sema::actOnUnknownCommand ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
StringRef  CommandName 
)

◆ actOnUnknownCommand() [2/2]

InlineContentComment * clang::comments::Sema::actOnUnknownCommand ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID 
)

Definition at line 379 of file CommentSema.cpp.

References clang::comments::Normal.

◆ actOnVerbatimBlockFinish()

void clang::comments::Sema::actOnVerbatimBlockFinish ( VerbatimBlockComment Block,
SourceLocation  CloseNameLocBegin,
StringRef  CloseName,
ArrayRef< VerbatimBlockLineComment * >  Lines 
)

Definition at line 407 of file CommentSema.cpp.

References clang::Block.

Referenced by clang::comments::Parser::parseVerbatimBlock().

◆ actOnVerbatimBlockLine()

VerbatimBlockLineComment * clang::comments::Sema::actOnVerbatimBlockLine ( SourceLocation  Loc,
StringRef  Text 
)

Definition at line 402 of file CommentSema.cpp.

References Text.

Referenced by clang::comments::Parser::parseVerbatimBlock().

◆ actOnVerbatimBlockStart()

VerbatimBlockComment * clang::comments::Sema::actOnVerbatimBlockStart ( SourceLocation  Loc,
unsigned  CommandID 
)

◆ actOnVerbatimLine()

VerbatimLineComment * clang::comments::Sema::actOnVerbatimLine ( SourceLocation  LocBegin,
unsigned  CommandID,
SourceLocation  TextBegin,
StringRef  Text 
)

◆ copyArray()

template<typename T >
ArrayRef< T > clang::comments::Sema::copyArray ( ArrayRef< T Source)
inline

◆ setDecl()

void clang::comments::Sema::setDecl ( const Decl D)

The documentation for this class was generated from the following files: