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< T > copyArray (ArrayRef< T > Source)
 Returns a copy of array, owned by Sema's allocator.
ParagraphComment * actOnParagraphComment (ArrayRef< InlineContentComment * > Content)
BlockCommandComment * actOnBlockCommandStart (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
void actOnBlockCommandArgs (BlockCommandComment *Command, ArrayRef< BlockCommandComment::Argument > Args)
void actOnBlockCommandFinish (BlockCommandComment *Command, ParagraphComment *Paragraph)
ParamCommandComment * actOnParamCommandStart (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)
TParamCommandComment * actOnTParamCommandStart (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
void actOnTParamCommandParamNameArg (TParamCommandComment *Command, SourceLocation ArgLocBegin, SourceLocation ArgLocEnd, StringRef Arg)
void actOnTParamCommandFinish (TParamCommandComment *Command, ParagraphComment *Paragraph)
InlineCommandComment * actOnInlineCommand (SourceLocation CommandLocBegin, SourceLocation CommandLocEnd, unsigned CommandID, CommandMarkerKind CommandMarker, ArrayRef< Comment::Argument > Args)
InlineContentComment * actOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, StringRef CommandName, CommandMarkerKind CommandMarker)
InlineContentComment * actOnUnknownCommand (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
TextComment * actOnText (SourceLocation LocBegin, SourceLocation LocEnd, StringRef Text)
VerbatimBlockComment * actOnVerbatimBlockStart (SourceLocation Loc, unsigned CommandID)
VerbatimBlockLineComment * actOnVerbatimBlockLine (SourceLocation Loc, StringRef Text)
void actOnVerbatimBlockFinish (VerbatimBlockComment *Block, SourceLocation CloseNameLocBegin, StringRef CloseName, ArrayRef< VerbatimBlockLineComment * > Lines)
VerbatimLineComment * actOnVerbatimLine (SourceLocation LocBegin, unsigned CommandID, SourceLocation TextBegin, StringRef Text)
HTMLStartTagComment * actOnHTMLStartTagStart (SourceLocation LocBegin, StringRef TagName)
void actOnHTMLStartTagFinish (HTMLStartTagComment *Tag, ArrayRef< HTMLStartTagComment::Attribute > Attrs, SourceLocation GreaterLoc, bool IsSelfClosing)
HTMLEndTagComment * actOnHTMLEndTag (SourceLocation LocBegin, SourceLocation LocEnd, StringRef TagName)
FullComment * actOnFullComment (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: