Home
last modified time | relevance | path

Searched refs:getFoundDecl (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h65 return visit(Expr->getFoundDecl(), Expr->getLocation()); in VisitDeclRefExpr()
69 return visit(Expr->getFoundDecl().getDecl(), Expr->getMemberLoc()); in VisitMemberExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMakeMemberFunctionConstCheck.cpp134 if (!OnConstObject || Member->getFoundDecl().getAccess() != AS_public) { in visitUser()
157 if (Member->getFoundDecl().getAccess() != AS_public && in visitUser()
/llvm-project-15.0.7/clang-tools-extra/include-cleaner/lib/
H A DWalkAST.cpp35 report(DRE->getLocation(), DRE->getFoundDecl()); in VisitDeclRefExpr()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindTarget.cpp263 if (auto *USD = llvm::dyn_cast<UsingShadowDecl>(DRE->getFoundDecl())) in add()
270 llvm::dyn_cast<UsingShadowDecl>(ME->getFoundDecl().getDecl())) in add()
369 Outer.add(ET->getFoundDecl(), Flags); in add()
724 {E->getFoundDecl()}}); in refInStmt()
736 if (llvm::isa<CXXDestructorDecl>(E->getFoundDecl().getDecl())) in refInStmt()
741 {E->getFoundDecl()}}); in refInStmt()
848 {L.getFoundDecl()}}); in refInTypeLoc()
H A DIncludeCleaner.cpp54 add(DRE->getFoundDecl()); in VisitDeclRefExpr()
60 add(ME->getFoundDecl().getDecl()); in VisitMemberExpr()
106 add(UT->getFoundDecl()); in VisitUsingType()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp85 if (auto *D = dyn_cast_or_null<VarDecl>(Ref->getFoundDecl())) { in isASafeCallArg()
H A DUncountedLocalVarsChecker.cpp189 dyn_cast_or_null<VarDecl>(Ref->getFoundDecl())) { in visitVarDecl()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTypoCorrection.h146 NamedDecl *getFoundDecl() const { in getFoundDecl() function
152 auto *D = getFoundDecl(); in getCorrectionDecl()
H A DLookup.h535 return dyn_cast<DeclClass>(getFoundDecl()); in getAsSingle()
543 NamedDecl *getFoundDecl() const { in getFoundDecl() function
557 return getResultKind() == Found && isa<TagDecl>(getFoundDecl()); in isSingleTagDecl()
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DCallbacksCommon.h62 if (NamedDecl *ND = DRE->getFoundDecl()) { in stmtToString()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTConcept.h148 NamedDecl *getFoundDecl() const { in getFoundDecl() function
H A DTypeLoc.h675 UsingShadowDecl *getFoundDecl() const { return getTypePtr()->getFoundDecl(); } in getFoundDecl() function
2156 NamedDecl *getFoundDecl() const { in getFoundDecl() function
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DLexicallyOrderedRecursiveASTVisitorTest.cpp95 std::string Name = D->getFoundDecl()->getNameAsString(); in VisitDeclRefExpr()
H A DLookupTest.cpp217 auto *TD = Type.getFoundDecl()->getTargetDecl(); in TEST()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmtAsm.cpp831 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
867 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
910 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
912 FD = dyn_cast<IndirectFieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
H A DScopeInfo.cpp237 Callback(cast<VarDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
H A DSemaCXXScopeSpec.cpp390 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
657 if (NamedDecl *ND = Corrected.getFoundDecl()) in BuildCXXNestedNameSpecifier()
H A DSemaTemplate.cpp522 if (auto *ND = Corrected.getFoundDecl()) in LookupTemplateName()
590 getAsTemplateNameDecl(FoundOuter.getFoundDecl()))) { in LookupTemplateName()
609 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
640 Found = DRE->getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
693 auto *ND = Corrected.getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
3950 if (Corrected && Corrected.getFoundDecl()) { in resolveAssumedTemplateNameAsType()
4811 R.getFoundDecl(), in BuildTemplateIdExpr()
9326 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
9345 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
10795 if (auto *TD = getAsTypeTemplateDecl(Result.getFoundDecl())) { in CheckTypenameType()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr()
269 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp363 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in checkPreStmt()
373 if (DE->getFoundDecl()->getName() == "kCFAllocatorNull") in checkPreStmt()
/llvm-project-15.0.7/clang/lib/AST/
H A DTextNodeDumper.cpp1038 if (Node->getDecl() != Node->getFoundDecl()) { in VisitDeclRefExpr()
1040 dumpBareDeclRef(Node->getFoundDecl()); in VisitDeclRefExpr()
1421 dumpBareDeclRef(Node->getFoundDecl()); in VisitConceptSpecializationExpr()
1545 dumpDeclRef(T->getFoundDecl()); in VisitUsingType()
2102 if (TC->getNamedConcept() != TC->getFoundDecl()) { in VisitTemplateTypeParmDecl()
2104 dumpBareDeclRef(TC->getFoundDecl()); in VisitTemplateTypeParmDecl()
H A DASTStructuralEquivalence.cpp266 return IsStructurallyEquivalent(Context, E1->getFoundDecl(), in IsStmtEquivalent()
267 E2->getFoundDecl()); in IsStmtEquivalent()
957 if (!IsStructurallyEquivalent(Context, cast<UsingType>(T1)->getFoundDecl(), in IsStructurallyEquivalent()
958 cast<UsingType>(T2)->getFoundDecl())) in IsStructurallyEquivalent()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp441 Record.AddDeclRef(E->getFoundDecl()); in VisitConceptSpecializationExpr()
608 Record.push_back(E->getDecl() != E->getFoundDecl()); in VisitDeclRefExpr()
622 (E->getDecl() == E->getFoundDecl()) && in VisitDeclRefExpr()
631 if (E->getDecl() != E->getFoundDecl()) in VisitDeclRefExpr()
632 Record.AddDeclRef(E->getFoundDecl()); in VisitDeclRefExpr()
893 (E->getFoundDecl().getDecl() != E->getMemberDecl() || in VisitMemberExpr()
894 E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess()); in VisitMemberExpr()
916 DeclAccessPair FoundDecl = E->getFoundDecl(); in VisitMemberExpr()
/llvm-project-15.0.7/clang/unittests/Interpreter/
H A DInterpreterTest.cpp252 return R.getFoundDecl();
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.cpp76 ->getFoundDecl() in TraverseTypeLoc()

12