clang
3.9.0
|
#include <CommentSema.h>
Definition at line 33 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::parseBlockCommandArgs().
void clang::comments::Sema::actOnBlockCommandFinish | ( | BlockCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 67 of file CommentSema.cpp.
References checkBlockCommandDuplicate(), checkBlockCommandEmptyParagraph(), checkDeprecatedCommand(), checkReturnsCommand(), and 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.
References checkContainerDecl().
Referenced by clang::comments::Parser::parseBlockCommand().
FullComment * clang::comments::Sema::actOnFullComment | ( | ArrayRef< BlockContentComment * > | Blocks | ) |
Definition at line 544 of file CommentSema.cpp.
References clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), clang::comments::HTMLTagComment::getTagName(), resolveParamCommandIndexes(), 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 476 of file CommentSema.cpp.
References E, clang::comments::Comment::getLocation(), clang::SourceManager::getPresumedLineNumber(), clang::comments::Comment::getSourceRange(), clang::comments::HTMLTagComment::getTagName(), I, 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 463 of file CommentSema.cpp.
References clang::comments::HTMLTagComment::getTagName(), clang::comments::HTMLStartTagComment::setAttrs(), clang::comments::HTMLStartTagComment::setGreaterLoc(), and clang::comments::HTMLStartTagComment::setSelfClosing().
Referenced by clang::comments::Parser::parseHTMLStartTag().
HTMLStartTagComment * clang::comments::Sema::actOnHTMLStartTagStart | ( | SourceLocation | LocBegin, |
StringRef | TagName | ||
) |
Definition at line 458 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseHTMLStartTag().
InlineCommandComment * clang::comments::Sema::actOnInlineCommand | ( | SourceLocation | CommandLocBegin, |
SourceLocation | CommandLocEnd, | ||
unsigned | CommandID | ||
) |
Definition at line 364 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), getInlineCommandRenderKind(), and clang::comments::CommandInfo::Name.
Referenced by clang::comments::Parser::parseInlineCommand().
InlineCommandComment * clang::comments::Sema::actOnInlineCommand | ( | SourceLocation | CommandLocBegin, |
SourceLocation | CommandLocEnd, | ||
unsigned | CommandID, | ||
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 377 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), getInlineCommandRenderKind(), and clang::comments::CommandInfo::Name.
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 228 of file CommentSema.cpp.
References clang::FixItHint::CreateReplacement(), clang::comments::ParamCommandComment::getDirectionAsString(), clang::comments::getParamPassDirection(), clang::comments::ParamCommandComment::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 275 of file CommentSema.cpp.
References checkBlockCommandEmptyParagraph(), and 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::ParamCommandComment::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(), clang::comments::Comment::getLocation(), and isFunctionDecl().
Referenced by clang::comments::Parser::parseBlockCommand().
TextComment * clang::comments::Sema::actOnText | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | Text | ||
) |
Definition at line 414 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseParagraphOrBlockCommand().
void clang::comments::Sema::actOnTParamCommandFinish | ( | TParamCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 358 of file CommentSema.cpp.
References checkBlockCommandEmptyParagraph(), and 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 299 of file CommentSema.cpp.
References copyArray(), correctTypoInTParamReference(), clang::FixItHint::CreateReplacement(), clang::NamedDecl::getIdentifier(), clang::comments::Comment::getLocation(), clang::IdentifierInfo::getName(), clang::comments::BlockCommandComment::getNumArgs(), clang::TemplateParameterList::getParam(), clang::comments::TParamCommandComment::getParamNameRange(), isTemplateOrSpecialization(), Position, resolveTParamReference(), 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 281 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandNameRange(), clang::comments::Comment::getLocation(), and isTemplateOrSpecialization().
Referenced by clang::comments::Parser::parseBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | CommandName | ||
) |
Definition at line 397 of file CommentSema.cpp.
References clang::comments::CommandInfo::getID(), and clang::comments::CommandTraits::registerUnknownCommand().
Referenced by clang::comments::Parser::parseParagraphOrBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID | ||
) |
Definition at line 404 of file CommentSema.cpp.
References clang::comments::InlineCommandComment::RenderNormal.
void clang::comments::Sema::actOnVerbatimBlockFinish | ( | VerbatimBlockComment * | Block, |
SourceLocation | CloseNameLocBegin, | ||
StringRef | CloseName, | ||
ArrayRef< VerbatimBlockLineComment * > | Lines | ||
) |
Definition at line 434 of file CommentSema.cpp.
References clang::comments::VerbatimBlockComment::setCloseName(), and clang::comments::VerbatimBlockComment::setLines().
Referenced by clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockLineComment * clang::comments::Sema::actOnVerbatimBlockLine | ( | SourceLocation | Loc, |
StringRef | Text | ||
) |
Definition at line 429 of file CommentSema.cpp.
Referenced by clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockComment * clang::comments::Sema::actOnVerbatimBlockStart | ( | SourceLocation | Loc, |
unsigned | CommandID | ||
) |
Definition at line 420 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), clang::SourceLocation::getLocWithOffset(), 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 443 of file CommentSema.cpp.
References checkContainerDeclVerbatimLine(), checkFunctionDeclVerbatimLine(), and clang::SourceLocation::getLocWithOffset().
Referenced by clang::comments::Parser::parseVerbatimLine().
void clang::comments::Sema::checkBlockCommandDuplicate | ( | const BlockCommandComment * | Command | ) |
Emit diagnostics about duplicate block commands that should be used only once per comment, e.g., \brief and \returns.
Definition at line 623 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::BlockCommandComment::getCommandName(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), clang::comments::CommandInfo::IsBriefCommand, and clang::comments::CommandInfo::IsHeaderfileCommand.
Referenced by actOnBlockCommandFinish().
void clang::comments::Sema::checkBlockCommandEmptyParagraph | ( | BlockCommandComment * | Command | ) |
Definition at line 563 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getArgRange(), clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::BlockCommandComment::getCommandName(), clang::comments::BlockCommandComment::getCommandNameRange(), clang::SourceRange::getEnd(), clang::comments::BlockCommandComment::getNumArgs(), clang::comments::BlockCommandComment::getParagraph(), clang::comments::Comment::getSourceRange(), clang::SourceLocation::isValid(), and clang::comments::ParagraphComment::isWhitespace().
Referenced by actOnBlockCommandFinish(), actOnParamCommandFinish(), and actOnTParamCommandFinish().
void clang::comments::Sema::checkContainerDecl | ( | const BlockCommandComment * | Comment | ) |
Definition at line 168 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), isRecordLikeDecl(), and clang::comments::CommandInfo::IsRecordLikeDetailCommand.
Referenced by actOnBlockCommandStart().
void clang::comments::Sema::checkContainerDeclVerbatimLine | ( | const BlockCommandComment * | Comment | ) |
Definition at line 131 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), isClassOrStructDecl(), isClassTemplateDecl(), isObjCInterfaceDecl(), isObjCProtocolDecl(), clang::comments::CommandInfo::IsRecordLikeDeclarationCommand, and isUnionDecl().
Referenced by actOnVerbatimLine().
void clang::comments::Sema::checkDeprecatedCommand | ( | const BlockCommandComment * | Comment | ) |
Definition at line 661 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, clang::FixItHint::CreateInsertion(), clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::Preprocessor::getIdentifierInfo(), clang::Preprocessor::getLastMacroWithSpelling(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), clang::DeclContext::isRecord(), and Tokens.
Referenced by actOnBlockCommandFinish().
void clang::comments::Sema::checkFunctionDeclVerbatimLine | ( | const BlockCommandComment * | Comment | ) |
Definition at line 98 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), isAnyFunctionDecl(), clang::comments::CommandInfo::IsFunctionDeclarationCommand, isFunctionPointerVarDecl(), isFunctionTemplateDecl(), and isObjCMethodDecl().
Referenced by actOnVerbatimLine().
void clang::comments::Sema::checkReturnsCommand | ( | const BlockCommandComment * | Command | ) |
Definition at line 581 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::BlockCommandComment::getCommandMarker(), clang::comments::BlockCommandComment::getCommandName(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), isFunctionDecl(), clang::comments::DeclInfo::IsObjCMethod, isObjCPropertyDecl(), clang::Type::isVoidType(), and clang::comments::DeclInfo::ReturnType.
Referenced by actOnBlockCommandFinish().
Returns a copy of array, owned by Sema's allocator.
Definition at line 81 of file CommentSema.h.
References clang::None.
Referenced by actOnTParamCommandParamNameArg(), clang::comments::Parser::parseFullComment(), clang::comments::Parser::parseHTMLStartTag(), clang::comments::Parser::parseParagraphOrBlockCommand(), and clang::comments::Parser::parseVerbatimBlock().
unsigned clang::comments::Sema::correctTypoInParmVarReference | ( | StringRef | Typo, |
ArrayRef< const ParmVarDecl * > | ParamVars | ||
) |
Returns index of a function parameter with the name closest to a given typo.
Definition at line 1005 of file CommentSema.cpp.
References clang::comments::ParamCommandComment::InvalidParamIndex.
Referenced by resolveParamCommandIndexes().
StringRef clang::comments::Sema::correctTypoInTParamReference | ( | StringRef | Typo, |
const TemplateParameterList * | TemplateParameters | ||
) |
Definition at line 1070 of file CommentSema.cpp.
References clang::IdentifierInfo::getName().
Referenced by actOnTParamCommandParamNameArg().
InlineCommandComment::RenderKind clang::comments::Sema::getInlineCommandRenderKind | ( | StringRef | Name | ) | const |
Definition at line 1084 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), clang::comments::CommandInfo::IsInlineCommand, clang::Name, clang::comments::InlineCommandComment::RenderBold, clang::comments::InlineCommandComment::RenderEmphasized, clang::comments::InlineCommandComment::RenderMonospaced, and clang::comments::InlineCommandComment::RenderNormal.
Referenced by actOnInlineCommand().
ArrayRef< const ParmVarDecl * > clang::comments::Sema::getParamVars | ( | ) |
Definition at line 929 of file CommentSema.cpp.
References inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and clang::comments::DeclInfo::ParamVars.
Referenced by resolveParamCommandIndexes().
void clang::comments::Sema::inspectThisDecl | ( | ) |
Extract all important semantic information from ThisDeclInfo->ThisDecl
into ThisDeclInfo
members.
Definition at line 935 of file CommentSema.cpp.
References clang::comments::DeclInfo::fill().
Referenced by getParamVars(), isClassOrStructDecl(), isClassTemplateDecl(), isFunctionDecl(), isFunctionPointerVarDecl(), isFunctionTemplateDecl(), isObjCInterfaceDecl(), isObjCPropertyDecl(), isObjCProtocolDecl(), isRecordLikeDecl(), isTemplateOrSpecialization(), and isUnionDecl().
bool clang::comments::Sema::isAnyFunctionDecl | ( | ) |
Definition at line 808 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, and isFunctionDecl().
Referenced by checkFunctionDeclVerbatimLine(), and isFunctionOrMethodVariadic().
bool clang::comments::Sema::isClassOrStructDecl | ( | ) |
Definition at line 883 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and isUnionDecl().
Referenced by checkContainerDeclVerbatimLine(), and isRecordLikeDecl().
bool clang::comments::Sema::isClassTemplateDecl | ( | ) |
Definition at line 893 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine().
bool clang::comments::Sema::isFunctionDecl | ( | ) |
Definition at line 800 of file CommentSema.cpp.
References clang::comments::DeclInfo::FunctionKind, clang::comments::DeclInfo::getKind(), inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by actOnParamCommandStart(), checkReturnsCommand(), isAnyFunctionDecl(), isObjCMethodDecl(), and resolveParamCommandIndexes().
bool clang::comments::Sema::isFunctionOrMethodVariadic | ( | ) |
Definition at line 813 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, isAnyFunctionDecl(), isFunctionTemplateDecl(), and isObjCMethodDecl().
Referenced by resolveParmVarReference().
bool clang::comments::Sema::isFunctionPointerVarDecl | ( | ) |
true
if declaration that this comment is attached to declares a function pointer. Definition at line 833 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, clang::comments::DeclInfo::getKind(), inspectThisDecl(), clang::comments::DeclInfo::IsFilled, clang::Type::isFunctionPointerType(), and clang::comments::DeclInfo::VariableKind.
Referenced by checkFunctionDeclVerbatimLine().
bool clang::comments::Sema::isFunctionTemplateDecl | ( | ) |
Definition at line 902 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkFunctionDeclVerbatimLine(), and isFunctionOrMethodVariadic().
bool clang::comments::Sema::isObjCInterfaceDecl | ( | ) |
Definition at line 911 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), and isRecordLikeDecl().
bool clang::comments::Sema::isObjCMethodDecl | ( | ) |
Definition at line 828 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, and isFunctionDecl().
Referenced by checkFunctionDeclVerbatimLine(), and isFunctionOrMethodVariadic().
bool clang::comments::Sema::isObjCPropertyDecl | ( | ) |
Definition at line 847 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkReturnsCommand().
bool clang::comments::Sema::isObjCProtocolDecl | ( | ) |
Definition at line 920 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), and isRecordLikeDecl().
bool clang::comments::Sema::isRecordLikeDecl | ( | ) |
Definition at line 863 of file CommentSema.cpp.
References inspectThisDecl(), isClassOrStructDecl(), clang::comments::DeclInfo::IsFilled, isObjCInterfaceDecl(), isObjCProtocolDecl(), and isUnionDecl().
Referenced by checkContainerDecl().
bool clang::comments::Sema::isTemplateOrSpecialization | ( | ) |
Definition at line 855 of file CommentSema.cpp.
References clang::comments::DeclInfo::getTemplateKind(), inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and clang::comments::DeclInfo::NotTemplate.
Referenced by actOnTParamCommandParamNameArg(), and actOnTParamCommandStart().
bool clang::comments::Sema::isUnionDecl | ( | ) |
Definition at line 872 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), isClassOrStructDecl(), and isRecordLikeDecl().
void clang::comments::Sema::resolveParamCommandIndexes | ( | const FullComment * | FC | ) |
Resolve parameter names to parameter indexes in function declaration.
Emit diagnostics about unknown parametrs.
Definition at line 711 of file CommentSema.cpp.
References clang::comments::FullComment::child_begin(), clang::comments::FullComment::child_end(), correctTypoInParmVarReference(), clang::FixItHint::CreateReplacement(), E, clang::SourceRange::getBegin(), clang::NamedDecl::getIdentifier(), clang::comments::ParamCommandComment::getParamNameAsWritten(), clang::comments::ParamCommandComment::getParamNameRange(), getParamVars(), clang::comments::ParamCommandComment::hasParamName(), I, clang::comments::ParamCommandComment::InvalidParamIndex, isFunctionDecl(), resolveParmVarReference(), clang::comments::ParamCommandComment::setIsVarArgParam(), clang::comments::ParamCommandComment::setParamIndex(), and clang::comments::ParamCommandComment::VarArgParamIndex.
Referenced by actOnFullComment().
unsigned clang::comments::Sema::resolveParmVarReference | ( | StringRef | Name, |
ArrayRef< const ParmVarDecl * > | ParamVars | ||
) |
Returns index of a function parameter with a given name.
Definition at line 939 of file CommentSema.cpp.
References clang::IdentifierInfo::getName(), clang::comments::ParamCommandComment::InvalidParamIndex, isFunctionOrMethodVariadic(), clang::Name, and clang::comments::ParamCommandComment::VarArgParamIndex.
Referenced by resolveParamCommandIndexes().
bool clang::comments::Sema::resolveTParamReference | ( | StringRef | Name, |
const TemplateParameterList * | TemplateParameters, | ||
SmallVectorImpl< unsigned > * | Position | ||
) |
Definition at line 1043 of file CommentSema.cpp.
Referenced by actOnTParamCommandParamNameArg().
void clang::comments::Sema::setDecl | ( | const Decl * | D | ) |
Definition at line 36 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, and clang::comments::DeclInfo::IsFilled.