Home
last modified time | relevance | path

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

12

/src/contrib/llvm-project/clang/include/clang/AST/
H A DASTConcept.h196 NamedDecl *getFoundDecl() const { in getFoundDecl() function
269 NamedDecl *getFoundDecl() const { return ConceptRef->getFoundDecl(); } in getFoundDecl() function
H A DExprConcepts.h110 NamedDecl *getFoundDecl() const { return ConceptRef->getFoundDecl(); } in getFoundDecl() function
H A DTypeLoc.h687 UsingShadowDecl *getFoundDecl() const { return getTypePtr()->getFoundDecl(); } in getFoundDecl() function
2225 NamedDecl *getFoundDecl() const { in getFoundDecl() function
2227 return CR->getFoundDecl(); in getFoundDecl()
/src/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp68 return dyn_cast<NamespaceDecl>(R.getFoundDecl()); in LookupNamespace()
100 return llvm::dyn_cast<NamedDecl>(R.getFoundDecl()); in LookupNamed()
/src/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()
/src/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.h560 return dyn_cast<DeclClass>(getFoundDecl()); in getAsSingle()
568 NamedDecl *getFoundDecl() const { in getFoundDecl() function
582 return getResultKind() == Found && isa<TagDecl>(getFoundDecl()); in isSingleTagDecl()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp118 if (auto *D = dyn_cast_or_null<VarDecl>(Ref->getFoundDecl())) { in isASafeCallArg()
H A DUncountedLocalVarsChecker.cpp216 dyn_cast_or_null<VarDecl>(Ref->getFoundDecl())) { in visitVarDecl()
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAsm.cpp839 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
875 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
918 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
920 FD = dyn_cast<IndirectFieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
H A DScopeInfo.cpp240 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
H A DHLSLExternalSemaSource.cpp51 NamedDecl *Found = Result.getFoundDecl(); in BuiltinTypeDeclBuilder()
142 auto *VD = cast<ValueDecl>(R.getFoundDecl()); in lookupBuiltinFunction()
H A DSemaCXXScopeSpec.cpp377 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
568 if (NamedDecl *ND = Corrected.getFoundDecl()) in BuildCXXNestedNameSpecifier()
H A DSemaExprObjC.cpp2124 Corrected.isKeyword() ? nullptr : Corrected.getFoundDecl(); in HandleExprPropertyRefExpr()
2346 NamedDecl *ND = Result.getFoundDecl(); in getObjCMessageKind()
4030 NamedDecl *Target = R.getFoundDecl(); in CheckObjCBridgeNSCast()
4094 Target = R.getFoundDecl(); in CheckObjCBridgeCFCast()
4259 Target = R.getFoundDecl(); in checkObjCBridgeRelatedComponents()
4807 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()); in LookupIvarInObjCMethod()
4840 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()) { in LookupIvarInObjCMethod()
4843 dyn_cast<ObjCIvarDecl>(Lookup.getFoundDecl())) { in LookupIvarInObjCMethod()
5147 NamedDecl *ND = Result.getFoundDecl(); in ActOnObjCBoolLiteral()
H A DSemaTemplate.cpp523 if (auto *ND = Corrected.getFoundDecl()) in LookupTemplateName()
591 getAsTemplateNameDecl(FoundOuter.getFoundDecl()))) { in LookupTemplateName()
601 getAsTemplateNameDecl(Found.getFoundDecl())->getCanonicalDecl() != in LookupTemplateName()
610 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
641 Found = DRE->getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
694 auto *ND = Corrected.getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
1248 TL.getNamedConcept(), /*FoundDecl=*/TL.getFoundDecl(), TL.getLAngleLoc(), in AttachTypeConstraint()
3541 if (Corrected && Corrected.getFoundDecl()) { in resolveAssumedTemplateNameAsType()
4446 !R.getFoundDecl()->getAsFunction()) in BuildTemplateIdExpr()
9116 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
[all …]
H A DSemaLookup.cpp4590 IsDeprecated(Correction.getFoundDecl()), in addCorrection()
4594 IsDeprecated(RI->getFoundDecl()), in addCorrection()
4955 Res.getFoundDecl()->isDefinedOutsideFunctionOrMethod()))) { in LookupPotentialTypoResult()
5684 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5696 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()
H A DSemaExprMember.cpp302 return isa<FieldDecl, IndirectFieldDecl, MSPropertyDecl>(R.getFoundDecl()); in isPotentialImplicitMemberAccess()
1105 NamedDecl *MemberDecl = R.getFoundDecl(); in BuildMemberReferenceExpr()
H A DSemaDecl.cpp500 IIDecl = Result.getFoundDecl(); in getTypeName()
970 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName()
1490 return Previous.getFoundDecl()->hasAttr<OverloadableAttr>(); in AllowOverloadingOfFunction()
4474 OldTemplate = dyn_cast<VarTemplateDecl>(Previous.getFoundDecl()); in MergeVarDecl()
4482 Old = dyn_cast<VarDecl>(Previous.getFoundDecl()); in MergeVarDecl()
7961 isDeclInScope(Previous.getFoundDecl(), OriginalDC, S, false)); in ActOnVariableDeclarator()
7974 isa<FieldDecl>(Previous.getFoundDecl()) && in ActOnVariableDeclarator()
8147 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
8161 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
8170 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
[all …]
H A DSemaTemplateVariadic.cpp1030 ParameterPack = R.getFoundDecl(); in ActOnSizeofParameterPackExpr()
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr()
270 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp356 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in checkPreStmt()
366 if (DE->getFoundDecl()->getName() == "kCFAllocatorNull") in checkPreStmt()
/src/contrib/llvm-project/clang/lib/AST/
H A DTextNodeDumper.cpp1370 if (Node->getDecl() != Node->getFoundDecl()) { in VisitDeclRefExpr()
1372 dumpBareDeclRef(Node->getFoundDecl()); in VisitDeclRefExpr()
1781 dumpBareDeclRef(Node->getFoundDecl()); in VisitConceptSpecializationExpr()
1968 dumpDeclRef(T->getFoundDecl()); in VisitUsingType()
2586 if (TC->getNamedConcept() != TC->getFoundDecl()) { in VisitTemplateTypeParmDecl()
2588 dumpBareDeclRef(TC->getFoundDecl()); in VisitTemplateTypeParmDecl()
H A DASTStructuralEquivalence.cpp280 return IsStructurallyEquivalent(Context, E1->getFoundDecl(), in IsStmtEquivalent()
281 E2->getFoundDecl()); in IsStmtEquivalent()
1110 if (!IsStructurallyEquivalent(Context, cast<UsingType>(T1)->getFoundDecl(), in IsStructurallyEquivalent()
1111 cast<UsingType>(T2)->getFoundDecl())) in IsStructurallyEquivalent()
H A DJSONNodeDumper.cpp610 JOS.attribute("decl", createBareDeclRef(TT->getFoundDecl())); in VisitUsingType()
1335 if (DRE->getDecl() != DRE->getFoundDecl()) in VisitDeclRefExpr()
1337 createBareDeclRef(DRE->getFoundDecl())); in VisitDeclRefExpr()
/src/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp680 CurrentPackingBits.addBit(E->getDecl() != E->getFoundDecl()); in VisitDeclRefExpr()
692 (E->getDecl() == E->getFoundDecl()) && in VisitDeclRefExpr()
700 if (E->getDecl() != E->getFoundDecl()) in VisitDeclRefExpr()
701 Record.AddDeclRef(E->getFoundDecl()); in VisitDeclRefExpr()
1002 DeclAccessPair FoundDecl = E->getFoundDecl(); in VisitMemberExpr()

12