clang
7.0.0
|
#include "clang/AST/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 copyArray(), and 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 copyArray(), and 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 copyArray(), and 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 copyArray(), and clang::comments::Parser::parseFullComment().
HTMLEndTagComment * clang::comments::Sema::actOnHTMLEndTag | ( | SourceLocation | LocBegin, |
SourceLocation | LocEnd, | ||
StringRef | TagName | ||
) |
Definition at line 476 of file CommentSema.cpp.
References clang::comments::Comment::getLocation(), clang::comments::Comment::getSourceRange(), 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 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 copyArray(), and clang::comments::Parser::parseHTMLStartTag().
HTMLStartTagComment * clang::comments::Sema::actOnHTMLStartTagStart | ( | SourceLocation | LocBegin, |
StringRef | TagName | ||
) |
Definition at line 458 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 364 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 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 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 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 copyArray(), and 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 copyArray(), and 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 copyArray(), and 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(), 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 414 of file CommentSema.cpp.
Referenced by copyArray(), and 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 copyArray(), and 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 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 281 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 397 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 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 copyArray(), and clang::comments::Parser::parseVerbatimBlock().
VerbatimBlockLineComment * clang::comments::Sema::actOnVerbatimBlockLine | ( | SourceLocation | Loc, |
StringRef | Text | ||
) |
Definition at line 429 of file CommentSema.cpp.
Referenced by copyArray(), and 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 copyArray(), and 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 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 625 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 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(), actOnTParamCommandFinish(), and copyArray().
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(), and copyArray().
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(), and copyArray().
void clang::comments::Sema::checkDeprecatedCommand | ( | const BlockCommandComment * | Comment | ) |
Definition at line 663 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 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(), and copyArray().
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::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 81 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 1038 of file CommentSema.cpp.
StringRef clang::comments::Sema::correctTypoInTParamReference | ( | StringRef | Typo, |
const TemplateParameterList * | TemplateParameters | ||
) |
Definition at line 1103 of file CommentSema.cpp.
InlineCommandComment::RenderKind clang::comments::Sema::getInlineCommandRenderKind | ( | StringRef | Name | ) | const |
Definition at line 1117 of file CommentSema.cpp.
Referenced by actOnInlineCommand().
ArrayRef< const ParmVarDecl * > clang::comments::Sema::getParamVars | ( | ) |
Definition at line 963 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 969 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 810 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, and isFunctionDecl().
Referenced by checkFunctionDeclVerbatimLine(), and copyArray().
bool clang::comments::Sema::isClassOrStructDecl | ( | ) |
Definition at line 917 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 927 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 802 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 857 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 815 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 843 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 936 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 945 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 838 of file CommentSema.cpp.
References clang::comments::DeclInfo::CurrentDecl, and isFunctionDecl().
Referenced by checkFunctionDeclVerbatimLine(), and copyArray().
bool clang::comments::Sema::isObjCPropertyDecl | ( | ) |
Definition at line 881 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 954 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 897 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 889 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 906 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 713 of file CommentSema.cpp.
References getParamVars(), and isFunctionDecl().
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 973 of file CommentSema.cpp.
Referenced by copyArray().
bool clang::comments::Sema::resolveTParamReference | ( | StringRef | Name, |
const TemplateParameterList * | TemplateParameters, | ||
SmallVectorImpl< unsigned > * | Position | ||
) |
Definition at line 1076 of file CommentSema.cpp.
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.