clang 20.0.0git
|
#include "clang/AST/CommentSema.h"
Definition at line 32 of file CommentSema.h.
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.
void clang::comments::Sema::actOnBlockCommandArgs | ( | BlockCommandComment * | Command, |
ArrayRef< BlockCommandComment::Argument > | Args | ||
) |
Definition at line 62 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::setArgs().
Referenced by clang::comments::Parser::parseBlockCommand().
void clang::comments::Sema::actOnBlockCommandFinish | ( | BlockCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 67 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::setParagraph().
Referenced by clang::comments::Parser::parseBlockCommand().
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().
FullComment * clang::comments::Sema::actOnFullComment | ( | ArrayRef< BlockContentComment * > | Blocks | ) |
Definition at line 517 of file CommentSema.cpp.
References clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), clang::comments::HTMLTagComment::getTagName(), and clang::comments::HTMLTagComment::setIsMalformed().
Referenced by clang::comments::Parser::parseFullComment().
HTMLEndTagComment * clang::comments::Sema::actOnHTMLEndTag | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | TagName | ||
) |
Definition at line 449 of file CommentSema.cpp.
References E, clang::comments::Comment::getLocation(), clang::SourceManager::getPresumedLineNumber(), clang::comments::Comment::getSourceRange(), clang::comments::HTMLTagComment::getTagName(), clang::comments::HTMLTagComment::isMalformed(), and clang::comments::HTMLTagComment::setIsMalformed().
Referenced by clang::comments::Parser::parseHTMLEndTag().
void clang::comments::Sema::actOnHTMLStartTagFinish | ( | HTMLStartTagComment * | Tag, |
ArrayRef< HTMLStartTagComment::Attribute > | Attrs, | ||
SourceLocation | GreaterLoc, | ||
bool | IsSelfClosing | ||
) |
Definition at line 436 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseHTMLStartTag().
HTMLStartTagComment * clang::comments::Sema::actOnHTMLStartTagStart | ( | SourceLocation | LocBegin, |
StringRef | TagName | ||
) |
Definition at line 431 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseHTMLStartTag().
InlineCommandComment * clang::comments::Sema::actOnInlineCommand | ( | SourceLocation | CommandLocBegin, |
SourceLocation | CommandLocEnd, | ||
unsigned | CommandID, | ||
ArrayRef< Comment::Argument > | Args | ||
) |
Definition at line 362 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), and clang::comments::CommandInfo::Name.
Referenced by clang::comments::Parser::parseInlineCommand().
ParagraphComment * clang::comments::Sema::actOnParagraphComment | ( | ArrayRef< InlineContentComment * > | Content | ) |
Definition at line 45 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseBlockCommand(), and clang::comments::Parser::parseParagraphOrBlockCommand().
void clang::comments::Sema::actOnParamCommandDirectionArg | ( | ParamCommandComment * | Command, |
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 230 of file CommentSema.cpp.
References clang::FixItHint::CreateReplacement(), clang::comments::ParamCommandComment::getDirectionAsString(), clang::comments::getParamPassDirection(), clang::comments::In, clang::isWhitespace(), and clang::comments::ParamCommandComment::setDirection().
Referenced by clang::comments::Parser::parseParamCommandArgs().
void clang::comments::Sema::actOnParamCommandFinish | ( | ParamCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 274 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::setParagraph().
Referenced by clang::comments::Parser::parseBlockCommand().
void clang::comments::Sema::actOnParamCommandParamNameArg | ( | ParamCommandComment * | Command, |
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 257 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getNumArgs(), clang::comments::In, clang::comments::ParamCommandComment::isDirectionExplicit(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::ParamCommandComment::setDirection().
Referenced by clang::comments::Parser::parseParamCommandArgs().
ParamCommandComment * clang::comments::Sema::actOnParamCommandStart | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID, | ||
CommandMarkerKind | CommandMarker | ||
) |
Definition at line 80 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandNameRange(), and clang::comments::Comment::getLocation().
Referenced by clang::comments::Parser::parseBlockCommand().
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().
void clang::comments::Sema::actOnTParamCommandFinish | ( | TParamCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 355 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::setParagraph().
Referenced by clang::comments::Parser::parseBlockCommand().
void clang::comments::Sema::actOnTParamCommandParamNameArg | ( | TParamCommandComment * | Command, |
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 298 of file CommentSema.cpp.
References copyArray(), clang::FixItHint::CreateReplacement(), clang::NamedDecl::getIdentifier(), clang::comments::Comment::getLocation(), clang::IdentifierInfo::getName(), clang::comments::BlockCommandComment::getNumArgs(), clang::TemplateParameterList::getParam(), clang::comments::TParamCommandComment::getParamNameRange(), clang::comments::BlockCommandComment::setArgs(), clang::comments::TParamCommandComment::setPosition(), clang::TemplateParameterList::size(), and clang::comments::DeclInfo::TemplateParameters.
Referenced by clang::comments::Parser::parseTParamCommandArgs().
TParamCommandComment * clang::comments::Sema::actOnTParamCommandStart | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID, | ||
CommandMarkerKind | CommandMarker | ||
) |
Definition at line 280 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandNameRange(), and clang::comments::Comment::getLocation().
Referenced by clang::comments::Parser::parseBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | CommandName | ||
) |
Definition at line 372 of file CommentSema.cpp.
References actOnUnknownCommand(), clang::comments::CommandInfo::getID(), and clang::comments::CommandTraits::registerUnknownCommand().
Referenced by actOnUnknownCommand(), and clang::comments::Parser::parseParagraphOrBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID | ||
) |
Definition at line 379 of file CommentSema.cpp.
References clang::comments::Normal.
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().
VerbatimBlockLineComment * clang::comments::Sema::actOnVerbatimBlockLine | ( | SourceLocation | Loc, |
StringRef | Text | ||
) |
Definition at line 402 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockComment * clang::comments::Sema::actOnVerbatimBlockStart | ( | SourceLocation | Loc, |
unsigned | CommandID | ||
) |
Definition at line 393 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), Loc, and clang::comments::CommandInfo::Name.
Referenced by clang::comments::Parser::parseVerbatimBlock().
VerbatimLineComment * clang::comments::Sema::actOnVerbatimLine | ( | SourceLocation | LocBegin, |
unsigned | CommandID, | ||
SourceLocation | TextBegin, | ||
StringRef | Text | ||
) |
Definition at line 416 of file CommentSema.cpp.
References clang::SourceLocation::getLocWithOffset(), and Text.
Referenced by clang::comments::Parser::parseVerbatimLine().
Returns a copy of array, owned by Sema's allocator.
Definition at line 80 of file CommentSema.h.
Referenced by actOnTParamCommandParamNameArg(), clang::comments::Parser::parseFullComment(), clang::comments::Parser::parseHTMLStartTag(), clang::comments::Parser::parseParagraphOrBlockCommand(), and clang::comments::Parser::parseVerbatimBlock().
void clang::comments::Sema::setDecl | ( | const Decl * | D | ) |
Definition at line 36 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, D, and clang::comments::DeclInfo::IsFilled.