Home
last modified time | relevance | path

Searched refs:CurrentDecl (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/lib/AST/
H A DCommentSema.cpp810 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
811 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
823 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
824 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
889 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructDecl()
901 if (!ThisDeclInfo->CurrentDecl) in isClassOrStructOrTagTypedefDecl()
904 if (isClassOrStructDeclImpl(ThisDeclInfo->CurrentDecl)) in isClassOrStructOrTagTypedefDecl()
927 return ThisDeclInfo->CurrentDecl && in isClassTemplateDecl()
936 return ThisDeclInfo->CurrentDecl && in isFunctionTemplateDecl()
945 return ThisDeclInfo->CurrentDecl && in isObjCInterfaceDecl()
[all …]
H A DComment.cpp217 CurrentDecl = CommentDecl; in fill()
H A DExpr.cpp641 std::string PredefinedExpr::ComputeName(IdentKind IK, const Decl *CurrentDecl) { in ComputeName() argument
642 ASTContext &Context = CurrentDecl->getASTContext(); in ComputeName()
645 if (const NamedDecl *ND = dyn_cast<NamedDecl>(CurrentDecl)) { in ComputeName()
671 if (isa<BlockDecl>(CurrentDecl)) { in ComputeName()
675 auto DC = CurrentDecl->getDeclContext(); in ComputeName()
688 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurrentDecl)) { in ComputeName()
834 if (const CapturedDecl *CD = dyn_cast<CapturedDecl>(CurrentDecl)) { in ComputeName()
844 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurrentDecl)) { in ComputeName()
865 if (isa<TranslationUnitDecl>(CurrentDecl) && IK == PrettyFunction) { in ComputeName()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp180 const auto *CurrentDecl = cast<VarDecl>(Decl); in declRanges() local
184 if (typeIsMemberPointer(CurrentDecl->getType().IgnoreParens().getTypePtr())) in declRanges()
188 CurrentDecl->hasInit() in declRanges()
189 ? findNextTerminator(CurrentDecl->getInit()->getEndLoc(), SM, in declRanges()
191 : findNextTerminator(CurrentDecl->getEndLoc(), SM, LangOpts); in declRanges()
/llvm-project-15.0.7/clang/lib/Index/
H A DCommentToXML.cpp578 ASTContext &Context = ThisDecl->CurrentDecl->getASTContext(); in getSourceTextOfDeclaration()
585 ThisDecl->CurrentDecl->print(OS, PPolicy, in getSourceTextOfDeclaration()
888 SourceLocation Loc = DI->CurrentDecl->getLocation(); in visitFullComment()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DComment.h976 const Decl *CurrentDecl; member
H A DExpr.h2031 static std::string ComputeName(IdentKind IK, const Decl *CurrentDecl);