Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DTypoCorrection.h146 NamedDecl *getFoundDecl() const { in getFoundDecl() function
152 auto *D = getFoundDecl(); in getCorrectionDecl()
H A DLookup.h509 return dyn_cast<DeclClass>(getFoundDecl()); in getAsSingle()
517 NamedDecl *getFoundDecl() const { in getFoundDecl() function
531 return getResultKind() == Found && isa<TagDecl>(getFoundDecl()); in isSingleTagDecl()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTConcept.h151 NamedDecl *getFoundDecl() const { in getFoundDecl() function
H A DExpr.h1319 NamedDecl *getFoundDecl() { in getFoundDecl() function
1325 const NamedDecl *getFoundDecl() const { in getFoundDecl() function
3242 DeclAccessPair getFoundDecl() const { in getFoundDecl() function
H A DTypeLoc.h2092 NamedDecl *getFoundDecl() const { in getFoundDecl() function
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAsm.cpp821 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
857 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
900 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
902 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.cpp518 if (auto *ND = Corrected.getFoundDecl()) in LookupTemplateName()
586 getAsTemplateNameDecl(FoundOuter.getFoundDecl()))) { in LookupTemplateName()
605 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
636 Found = DRE->getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
689 auto *ND = Corrected.getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
3892 if (Corrected && Corrected.getFoundDecl()) { in resolveAssumedTemplateNameAsType()
4753 R.getFoundDecl(), in BuildTemplateIdExpr()
9224 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
9243 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
10693 if (auto *TD = getAsTypeTemplateDecl(Result.getFoundDecl())) { in CheckTypenameType()
[all …]
H A DSemaDecl.cpp466 IIDecl = Result.getFoundDecl(); in getTypeName()
967 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName()
4118 Old = dyn_cast<VarDecl>(Previous.getFoundDecl()); in MergeVarDecl()
7475 isa<FieldDecl>(Previous.getFoundDecl()) && in ActOnVariableDeclarator()
7640 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
7656 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
7667 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
10852 OldDecl = Previous.getFoundDecl(); in CheckFunctionDeclaration()
13760 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnParamDeclarator()
15816 NamedDecl *ND = Previous.getFoundDecl(); in ActOnTag()
[all …]
H A DSemaExprObjC.cpp2113 Corrected.isKeyword() ? nullptr : Corrected.getFoundDecl(); in HandleExprPropertyRefExpr()
2336 NamedDecl *ND = Result.getFoundDecl(); in getObjCMessageKind()
4023 Target = R.getFoundDecl(); in CheckObjCBridgeNSCast()
4089 Target = R.getFoundDecl(); in CheckObjCBridgeCFCast()
4257 Target = R.getFoundDecl(); in checkObjCBridgeRelatedComponents()
H A DSemaTemplateVariadic.cpp1017 ParameterPack = R.getFoundDecl(); in ActOnSizeofParameterPackExpr()
H A DSemaExpr.cpp2289 NamedDecl *ND = Corrected.getFoundDecl(); in DiagnoseEmptyLookup()
2649 MightBeImplicitMember = isa<FieldDecl>(R.getFoundDecl()) || in ActOnIdExpression()
2650 isa<IndirectFieldDecl>(R.getFoundDecl()) || in ActOnIdExpression()
2651 isa<MSPropertyDecl>(R.getFoundDecl()); in ActOnIdExpression()
2826 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()) { in LookupIvarInObjCMethod()
2829 dyn_cast<ObjCIvarDecl>(Lookup.getFoundDecl())) { in LookupIvarInObjCMethod()
3157 const auto *FD = dyn_cast<FunctionDecl>(R.getFoundDecl()); in ShouldLookupResultBeMultiVersionOverload()
3178 CheckDeclInExpr(*this, R.getNameLoc(), R.getFoundDecl())) in BuildDeclarationNameExpr()
5784 if (NamedDecl *ND = Corrected.getFoundDecl()) { in TryTypoCorrectionForCall()
18208 DRE->getFoundDecl(), CopiedTemplateArgs(DRE), NOUR); in rebuildPotentialResultsAsNonOdrUsed()
[all …]
H A DSemaLookup.cpp4678 Res.getFoundDecl()->isDefinedOutsideFunctionOrMethod()))) { in LookupPotentialTypoResult()
5469 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5481 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()
H A DSemaCoroutine.cpp1201 S.Diag(Found.getFoundDecl()->getLocation(), diag::note_member_declared_here) in makeReturnOnAllocFailure()
H A DSemaExprMember.cpp1064 NamedDecl *MemberDecl = R.getFoundDecl(); in BuildMemberReferenceExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr()
269 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp364 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in checkPreStmt()
374 if (DE->getFoundDecl()->getName() == "kCFAllocatorNull") in checkPreStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp439 Record.AddDeclRef(E->getFoundDecl()); in VisitConceptSpecializationExpr()
610 Record.push_back(E->getDecl() != E->getFoundDecl()); in VisitDeclRefExpr()
624 (E->getDecl() == E->getFoundDecl()) && in VisitDeclRefExpr()
633 if (E->getDecl() != E->getFoundDecl()) in VisitDeclRefExpr()
634 Record.AddDeclRef(E->getFoundDecl()); in VisitDeclRefExpr()
895 (E->getFoundDecl().getDecl() != E->getMemberDecl() || in VisitMemberExpr()
896 E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess()); in VisitMemberExpr()
918 DeclAccessPair FoundDecl = E->getFoundDecl(); in VisitMemberExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTextNodeDumper.cpp1023 if (Node->getDecl() != Node->getFoundDecl()) { in VisitDeclRefExpr()
1025 dumpBareDeclRef(Node->getFoundDecl()); in VisitDeclRefExpr()
1406 dumpBareDeclRef(Node->getFoundDecl()); in VisitConceptSpecializationExpr()
2069 if (TC->getNamedConcept() != TC->getFoundDecl()) { in VisitTemplateTypeParmDecl()
2071 dumpBareDeclRef(TC->getFoundDecl()); in VisitTemplateTypeParmDecl()
H A DJSONNodeDumper.cpp1195 if (DRE->getDecl() != DRE->getFoundDecl()) in VisitDeclRefExpr()
1197 createBareDeclRef(DRE->getFoundDecl())); in VisitDeclRefExpr()
H A DASTStructuralEquivalence.cpp266 return IsStructurallyEquivalent(Context, E1->getFoundDecl(), in IsStmtEquivalent()
267 E2->getFoundDecl()); in IsStmtEquivalent()

12