Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/AST/
DCommentSema.cpp830 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
831 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
835 if (!isFunctionDecl() || !ThisDeclInfo->CurrentDecl) in isFunctionOrMethodVariadic()
838 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
841 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
844 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
847 dyn_cast<TypedefNameDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionOrMethodVariadic()
858 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
859 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
868 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
[all …]
DComment.cpp221 CurrentDecl = CommentDecl; in fill()
DExpr.cpp564 std::string PredefinedExpr::ComputeName(IdentKind IK, const Decl *CurrentDecl) { in ComputeName() argument
565 ASTContext &Context = CurrentDecl->getASTContext(); in ComputeName()
568 if (const NamedDecl *ND = dyn_cast<NamedDecl>(CurrentDecl)) { in ComputeName()
594 if (isa<BlockDecl>(CurrentDecl)) { in ComputeName()
598 auto DC = CurrentDecl->getDeclContext(); in ComputeName()
611 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurrentDecl)) { in ComputeName()
756 if (const CapturedDecl *CD = dyn_cast<CapturedDecl>(CurrentDecl)) { in ComputeName()
766 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurrentDecl)) { in ComputeName()
787 if (isa<TranslationUnitDecl>(CurrentDecl) && IK == PrettyFunction) { in ComputeName()
/external/clang/lib/AST/
DCommentSema.cpp809 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isAnyFunctionDecl()
810 isa<FunctionDecl>(ThisDeclInfo->CurrentDecl); in isAnyFunctionDecl()
817 dyn_cast<FunctionDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
820 dyn_cast<FunctionTemplateDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
823 dyn_cast<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl)) in isFunctionOrMethodVariadic()
829 return isFunctionDecl() && ThisDeclInfo->CurrentDecl && in isObjCMethodDecl()
830 isa<ObjCMethodDecl>(ThisDeclInfo->CurrentDecl); in isObjCMethodDecl()
839 if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDeclInfo->CurrentDecl)) { in isFunctionPointerVarDecl()
852 return ThisDeclInfo->CurrentDecl->getKind() == Decl::ObjCProperty; in isObjCPropertyDecl()
878 dyn_cast_or_null<RecordDecl>(ThisDeclInfo->CurrentDecl)) in isUnionDecl()
[all …]
DComment.cpp146 CurrentDecl = CommentDecl; in fill()
DExpr.cpp472 std::string PredefinedExpr::ComputeName(IdentType IT, const Decl *CurrentDecl) { in ComputeName() argument
473 ASTContext &Context = CurrentDecl->getASTContext(); in ComputeName()
476 if (const NamedDecl *ND = dyn_cast<NamedDecl>(CurrentDecl)) { in ComputeName()
498 if (auto *BD = dyn_cast<BlockDecl>(CurrentDecl)) { in ComputeName()
503 auto DC = CurrentDecl->getDeclContext(); in ComputeName()
514 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurrentDecl)) { in ComputeName()
653 if (const CapturedDecl *CD = dyn_cast<CapturedDecl>(CurrentDecl)) { in ComputeName()
663 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurrentDecl)) { in ComputeName()
684 if (isa<TranslationUnitDecl>(CurrentDecl) && IT == PrettyFunction) { in ComputeName()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
/external/llvm-project/clang/lib/Index/
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()
/external/clang/lib/Index/
DCommentToXML.cpp583 ASTContext &Context = ThisDecl->CurrentDecl->getASTContext(); in getSourceTextOfDeclaration()
589 ThisDecl->CurrentDecl->print(OS, PPolicy, in getSourceTextOfDeclaration()
891 SourceLocation Loc = DI->CurrentDecl->getLocation(); in visitFullComment()
/external/llvm-project/clang/include/clang/AST/
DComment.h993 const Decl *CurrentDecl; member
DExpr.h2019 static std::string ComputeName(IdentKind IK, const Decl *CurrentDecl);
/external/clang/include/clang/AST/
DComment.h999 const Decl *CurrentDecl; member
DExpr.h1198 static std::string ComputeName(IdentType IT, const Decl *CurrentDecl);