clang 24.0.0git
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, CommandMarkerKind CommandMarker, ArrayRef< Comment::Argument > Args)
InlineContentCommentactOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, StringRef CommandName, CommandMarkerKind CommandMarker)
InlineContentCommentactOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
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.

References clang::nullptr.

Member Function Documentation

◆ actOnBlockCommandArgs()

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

Definition at line 62 of file CommentSema.cpp.

References clang::comments::BlockCommandComment::setArgs().

◆ 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.

◆ actOnFullComment()

◆ actOnHTMLEndTag()

◆ actOnHTMLStartTagFinish()

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

Definition at line 448 of file CommentSema.cpp.

References clang::comments::HTMLStartTagComment::setAttrs().

◆ actOnHTMLStartTagStart()

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

Definition at line 443 of file CommentSema.cpp.

◆ actOnInlineCommand()

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

Definition at line 371 of file CommentSema.cpp.

◆ actOnParagraphComment()

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

Definition at line 45 of file CommentSema.cpp.

◆ actOnParamCommandDirectionArg()

◆ actOnParamCommandFinish()

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

◆ actOnParamCommandParamNameArg()

◆ 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 399 of file CommentSema.cpp.

References clang::Text.

◆ actOnTParamCommandFinish()

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

◆ actOnTParamCommandParamNameArg()

◆ 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,
CommandMarkerKind CommandMarker )

Definition at line 383 of file CommentSema.cpp.

References actOnUnknownCommand().

Referenced by actOnUnknownCommand().

◆ actOnUnknownCommand() [2/2]

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

Definition at line 391 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 419 of file CommentSema.cpp.

References clang::Block.

◆ actOnVerbatimBlockLine()

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

Definition at line 414 of file CommentSema.cpp.

References clang::Text.

◆ actOnVerbatimBlockStart()

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

Definition at line 405 of file CommentSema.cpp.

References clang::SourceLocation::getLocWithOffset().

◆ actOnVerbatimLine()

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

Definition at line 428 of file CommentSema.cpp.

References clang::SourceLocation::getLocWithOffset(), and clang::Text.

◆ copyArray()

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

Returns a copy of array, owned by Sema's allocator.

Definition at line 80 of file CommentSema.h.

Referenced by actOnTParamCommandParamNameArg().

◆ setDecl()

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

Definition at line 36 of file CommentSema.cpp.

References clang::comments::DeclInfo::CommentDecl.

Referenced by clang::RawComment::parse().


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