clang
9.0.0
|
#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 27 of file CommentSema.cpp.
void clang::comments::Sema::actOnBlockCommandArgs | ( | BlockCommandComment * | Command, |
ArrayRef< BlockCommandComment::Argument > | Args | ||
) |
Definition at line 61 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::setArgs().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommandArgs().
void clang::comments::Sema::actOnBlockCommandFinish | ( | BlockCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 66 of file CommentSema.cpp.
References checkBlockCommandDuplicate(), checkBlockCommandEmptyParagraph(), checkDeprecatedCommand(), checkReturnsCommand(), and clang::comments::BlockCommandComment::setParagraph().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommand().
BlockCommandComment * clang::comments::Sema::actOnBlockCommandStart | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID, | ||
CommandMarkerKind | CommandMarker | ||
) |
Definition at line 49 of file CommentSema.cpp.
References checkContainerDecl().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommand().
FullComment * clang::comments::Sema::actOnFullComment | ( | ArrayRef< BlockContentComment *> | Blocks | ) |
Definition at line 543 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 copyArray(), and clang::comments::Parser::parseFullComment().
HTMLEndTagComment * clang::comments::Sema::actOnHTMLEndTag | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | TagName | ||
) |
Definition at line 475 of file CommentSema.cpp.
References 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 copyArray(), and clang::comments::Parser::parseHTMLEndTag().
void clang::comments::Sema::actOnHTMLStartTagFinish | ( | HTMLStartTagComment * | Tag, |
ArrayRef< HTMLStartTagComment::Attribute > | Attrs, | ||
SourceLocation | GreaterLoc, | ||
bool | IsSelfClosing | ||
) |
Definition at line 462 of file CommentSema.cpp.
References clang::comments::HTMLTagComment::getTagName(), clang::comments::HTMLStartTagComment::setAttrs(), clang::comments::HTMLStartTagComment::setGreaterLoc(), and clang::comments::HTMLStartTagComment::setSelfClosing().
Referenced by copyArray(), and clang::comments::Parser::parseHTMLStartTag().
HTMLStartTagComment * clang::comments::Sema::actOnHTMLStartTagStart | ( | SourceLocation | LocBegin, |
StringRef | TagName | ||
) |
Definition at line 457 of file CommentSema.cpp.
Referenced by copyArray(), and clang::comments::Parser::parseHTMLStartTag().
InlineCommandComment * clang::comments::Sema::actOnInlineCommand | ( | SourceLocation | CommandLocBegin, |
SourceLocation | CommandLocEnd, | ||
unsigned | CommandID | ||
) |
Definition at line 363 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), getInlineCommandRenderKind(), and clang::comments::CommandInfo::Name.
Referenced by copyArray(), and clang::comments::Parser::parseInlineCommand().
InlineCommandComment * clang::comments::Sema::actOnInlineCommand | ( | SourceLocation | CommandLocBegin, |
SourceLocation | CommandLocEnd, | ||
unsigned | CommandID, | ||
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 376 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 44 of file CommentSema.cpp.
Referenced by copyArray(), 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 227 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 copyArray(), and clang::comments::Parser::parseParamCommandArgs().
void clang::comments::Sema::actOnParamCommandFinish | ( | ParamCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 274 of file CommentSema.cpp.
References checkBlockCommandEmptyParagraph(), and clang::comments::BlockCommandComment::setParagraph().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommand().
void clang::comments::Sema::actOnParamCommandParamNameArg | ( | ParamCommandComment * | Command, |
SourceLocation | ArgLocBegin, | ||
SourceLocation | ArgLocEnd, | ||
StringRef | Arg | ||
) |
Definition at line 256 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 copyArray(), and clang::comments::Parser::parseParamCommandArgs().
ParamCommandComment * clang::comments::Sema::actOnParamCommandStart | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID, | ||
CommandMarkerKind | CommandMarker | ||
) |
Definition at line 79 of file CommentSema.cpp.
References clang::comments::BlockCommandComment::getCommandNameRange(), clang::comments::Comment::getLocation(), isFunctionDecl(), and isFunctionOrBlockPointerVarLikeDecl().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommand().
TextComment * clang::comments::Sema::actOnText | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | Text | ||
) |
Definition at line 413 of file CommentSema.cpp.
Referenced by copyArray(), and clang::comments::Parser::parseParagraphOrBlockCommand().
void clang::comments::Sema::actOnTParamCommandFinish | ( | TParamCommandComment * | Command, |
ParagraphComment * | Paragraph | ||
) |
Definition at line 357 of file CommentSema.cpp.
References checkBlockCommandEmptyParagraph(), and clang::comments::BlockCommandComment::setParagraph().
Referenced by copyArray(), and 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 clang::comments::BlockCommandComment::getNumArgs(), isTemplateOrSpecialization(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::DeclInfo::TemplateParameters.
Referenced by copyArray(), and 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(), clang::comments::Comment::getLocation(), and isTemplateOrSpecialization().
Referenced by copyArray(), and clang::comments::Parser::parseBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | CommandName | ||
) |
Definition at line 396 of file CommentSema.cpp.
References clang::comments::CommandInfo::getID(), and clang::comments::CommandTraits::registerUnknownCommand().
Referenced by copyArray(), and clang::comments::Parser::parseParagraphOrBlockCommand().
InlineContentComment * clang::comments::Sema::actOnUnknownCommand | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
unsigned | CommandID | ||
) |
Definition at line 403 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 433 of file CommentSema.cpp.
References clang::comments::VerbatimBlockComment::setCloseName(), and clang::comments::VerbatimBlockComment::setLines().
Referenced by copyArray(), and clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockLineComment * clang::comments::Sema::actOnVerbatimBlockLine | ( | SourceLocation | Loc, |
StringRef | Text | ||
) |
Definition at line 428 of file CommentSema.cpp.
Referenced by copyArray(), and clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockComment * clang::comments::Sema::actOnVerbatimBlockStart | ( | SourceLocation | Loc, |
unsigned | CommandID | ||
) |
Definition at line 419 of file CommentSema.cpp.
References clang::comments::CommandTraits::getCommandInfo(), clang::SourceLocation::getLocWithOffset(), and clang::comments::CommandInfo::Name.
Referenced by copyArray(), and clang::comments::Parser::parseVerbatimBlock().
VerbatimLineComment * clang::comments::Sema::actOnVerbatimLine | ( | SourceLocation | LocBegin, |
unsigned | CommandID, | ||
SourceLocation | TextBegin, | ||
StringRef | Text | ||
) |
Definition at line 442 of file CommentSema.cpp.
References checkContainerDeclVerbatimLine(), checkFunctionDeclVerbatimLine(), and clang::SourceLocation::getLocWithOffset().
Referenced by copyArray(), and 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., \returns.
Definition at line 624 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(), and copyArray().
void clang::comments::Sema::checkBlockCommandEmptyParagraph | ( | BlockCommandComment * | Command | ) |
Definition at line 562 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(), actOnTParamCommandFinish(), and copyArray().
void clang::comments::Sema::checkContainerDecl | ( | const BlockCommandComment * | Comment | ) |
Definition at line 167 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(), and copyArray().
void clang::comments::Sema::checkContainerDeclVerbatimLine | ( | const BlockCommandComment * | Comment | ) |
Definition at line 130 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(), and copyArray().
void clang::comments::Sema::checkDeprecatedCommand | ( | const BlockCommandComment * | Comment | ) |
Definition at line 662 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, clang::comments::BlockCommandComment::getCommandID(), clang::comments::CommandTraits::getCommandInfo(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), clang::Decl::hasAttr(), and clang::DeclContext::isRecord().
Referenced by actOnBlockCommandFinish(), and copyArray().
void clang::comments::Sema::checkFunctionDeclVerbatimLine | ( | const BlockCommandComment * | Comment | ) |
Definition at line 97 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(), and copyArray().
void clang::comments::Sema::checkReturnsCommand | ( | const BlockCommandComment * | Command | ) |
Definition at line 580 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::Decl::getKind(), clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), isFunctionDecl(), isFunctionOrBlockPointerVarLikeDecl(), clang::comments::DeclInfo::IsObjCMethod, isObjCPropertyDecl(), clang::Type::isVoidType(), and clang::comments::DeclInfo::ReturnType.
Referenced by actOnBlockCommandFinish(), and copyArray().
Returns a copy of array, owned by Sema's allocator.
Definition at line 80 of file CommentSema.h.
References actOnBlockCommandArgs(), actOnBlockCommandFinish(), actOnBlockCommandStart(), actOnFullComment(), actOnHTMLEndTag(), actOnHTMLStartTagFinish(), actOnHTMLStartTagStart(), actOnInlineCommand(), actOnParagraphComment(), actOnParamCommandDirectionArg(), actOnParamCommandFinish(), actOnParamCommandParamNameArg(), actOnParamCommandStart(), actOnText(), actOnTParamCommandFinish(), actOnTParamCommandParamNameArg(), actOnTParamCommandStart(), actOnUnknownCommand(), actOnVerbatimBlockFinish(), actOnVerbatimBlockLine(), actOnVerbatimBlockStart(), actOnVerbatimLine(), checkBlockCommandDuplicate(), checkBlockCommandEmptyParagraph(), checkContainerDecl(), checkContainerDeclVerbatimLine(), checkDeprecatedCommand(), checkFunctionDeclVerbatimLine(), checkReturnsCommand(), getParamVars(), inspectThisDecl(), isAnyFunctionDecl(), isClassOrStructDecl(), isClassTemplateDecl(), isFunctionDecl(), isFunctionOrBlockPointerVarLikeDecl(), isFunctionOrMethodVariadic(), isFunctionPointerVarDecl(), isFunctionTemplateDecl(), isObjCInterfaceDecl(), isObjCMethodDecl(), isObjCPropertyDecl(), isObjCProtocolDecl(), isRecordLikeDecl(), isTemplateOrSpecialization(), isUnionDecl(), resolveParamCommandIndexes(), resolveParmVarReference(), and Text.
Referenced by 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 1036 of file CommentSema.cpp.
Referenced by resolveParamCommandIndexes().
StringRef clang::comments::Sema::correctTypoInTParamReference | ( | StringRef | Typo, |
const TemplateParameterList * | TemplateParameters | ||
) |
Definition at line 1101 of file CommentSema.cpp.
InlineCommandComment::RenderKind clang::comments::Sema::getInlineCommandRenderKind | ( | StringRef | Name | ) | const |
Definition at line 1115 of file CommentSema.cpp.
Referenced by actOnInlineCommand().
ArrayRef< const ParmVarDecl * > clang::comments::Sema::getParamVars | ( | ) |
Definition at line 961 of file CommentSema.cpp.
References inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and clang::comments::DeclInfo::ParamVars.
Referenced by copyArray(), and resolveParamCommandIndexes().
void clang::comments::Sema::inspectThisDecl | ( | ) |
Extract all important semantic information from ThisDeclInfo->ThisDecl
into ThisDeclInfo
members.
Definition at line 967 of file CommentSema.cpp.
References clang::comments::DeclInfo::fill().
Referenced by copyArray(), getParamVars(), isClassOrStructDecl(), isClassTemplateDecl(), isFunctionDecl(), isFunctionOrBlockPointerVarLikeDecl(), 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 copyArray().
bool clang::comments::Sema::isClassOrStructDecl | ( | ) |
Definition at line 915 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and isUnionDecl().
Referenced by checkContainerDeclVerbatimLine(), copyArray(), and isRecordLikeDecl().
bool clang::comments::Sema::isClassTemplateDecl | ( | ) |
Definition at line 925 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), and copyArray().
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(), copyArray(), isAnyFunctionDecl(), isFunctionOrMethodVariadic(), isObjCMethodDecl(), and resolveParamCommandIndexes().
bool clang::comments::Sema::isFunctionOrBlockPointerVarLikeDecl | ( | ) |
true
if the declaration that this comment is attached to declares a variable or a field whose type is a function or a block pointer. Definition at line 855 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, clang::Type::getAs(), clang::comments::DeclInfo::getKind(), inspectThisDecl(), clang::Type::isBlockPointerType(), clang::comments::DeclInfo::IsFilled, clang::Type::isFunctionPointerType(), and clang::comments::DeclInfo::VariableKind.
Referenced by actOnParamCommandStart(), checkReturnsCommand(), and copyArray().
bool clang::comments::Sema::isFunctionOrMethodVariadic | ( | ) |
Definition at line 813 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, clang::Type::getAs(), clang::Type::getPointeeType(), clang::Type::isBlockPointerType(), isFunctionDecl(), and clang::Type::isFunctionPointerType().
Referenced by copyArray().
bool clang::comments::Sema::isFunctionPointerVarDecl | ( | ) |
true
if declaration that this comment is attached to declares a function pointer. Definition at line 841 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(), and copyArray().
bool clang::comments::Sema::isFunctionTemplateDecl | ( | ) |
Definition at line 934 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkFunctionDeclVerbatimLine(), and copyArray().
bool clang::comments::Sema::isObjCInterfaceDecl | ( | ) |
Definition at line 943 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), copyArray(), and isRecordLikeDecl().
bool clang::comments::Sema::isObjCMethodDecl | ( | ) |
Definition at line 836 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, and isFunctionDecl().
Referenced by checkFunctionDeclVerbatimLine(), and copyArray().
bool clang::comments::Sema::isObjCPropertyDecl | ( | ) |
Definition at line 879 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, clang::Decl::getKind(), inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkReturnsCommand(), and copyArray().
bool clang::comments::Sema::isObjCProtocolDecl | ( | ) |
Definition at line 952 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), copyArray(), and isRecordLikeDecl().
bool clang::comments::Sema::isRecordLikeDecl | ( | ) |
Definition at line 895 of file CommentSema.cpp.
References inspectThisDecl(), isClassOrStructDecl(), clang::comments::DeclInfo::IsFilled, isObjCInterfaceDecl(), isObjCProtocolDecl(), and isUnionDecl().
Referenced by checkContainerDecl(), and copyArray().
bool clang::comments::Sema::isTemplateOrSpecialization | ( | ) |
Definition at line 887 of file CommentSema.cpp.
References clang::comments::DeclInfo::getTemplateKind(), inspectThisDecl(), clang::comments::DeclInfo::IsFilled, and clang::comments::DeclInfo::NotTemplate.
Referenced by actOnTParamCommandParamNameArg(), actOnTParamCommandStart(), and copyArray().
bool clang::comments::Sema::isUnionDecl | ( | ) |
Definition at line 904 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, inspectThisDecl(), and clang::comments::DeclInfo::IsFilled.
Referenced by checkContainerDeclVerbatimLine(), copyArray(), 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(), 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(), and copyArray().
unsigned clang::comments::Sema::resolveParmVarReference | ( | StringRef | Name, |
ArrayRef< const ParmVarDecl *> | ParamVars | ||
) |
Returns index of a function parameter with a given name.
Definition at line 971 of file CommentSema.cpp.
Referenced by copyArray(), and resolveParamCommandIndexes().
bool clang::comments::Sema::resolveTParamReference | ( | StringRef | Name, |
const TemplateParameterList * | TemplateParameters, | ||
SmallVectorImpl< unsigned > * | Position | ||
) |
Definition at line 1074 of file CommentSema.cpp.
void clang::comments::Sema::setDecl | ( | const Decl * | D | ) |
Definition at line 35 of file CommentSema.cpp.
References clang::comments::DeclInfo::CommentDecl, and clang::comments::DeclInfo::IsFilled.