Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTConcept.h196 NamedDecl *getFoundDecl() const { in getFoundDecl() function
273 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.h689 UsingShadowDecl *getFoundDecl() const { return getTypePtr()->getFoundDecl(); } in getFoundDecl() function
2281 NamedDecl *getFoundDecl() const { in getFoundDecl() function
2283 return CR->getFoundDecl(); in getFoundDecl()
/freebsd/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()
/freebsd/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/contrib/llvm-project/clang/include/clang/Sema/
H A DLookup.h561 return dyn_cast<DeclClass>(getFoundDecl()); in getAsSingle()
569 NamedDecl *getFoundDecl() const { in getFoundDecl() function
584 isa<TagDecl>(getFoundDecl()); in isSingleTagDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAsm.cpp879 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
915 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
958 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
960 FD = dyn_cast<IndirectFieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
H A DScopeInfo.cpp239 Callback(cast<ValueDecl>(DRE->getFoundDecl()), E); in visitPotentialCaptures()
H A DHLSLBuiltinTypeDeclBuilder.cpp48 return cast<FunctionDecl>(R.getFoundDecl()); in lookupBuiltinFunction()
541 NamedDecl *Found = Result.getFoundDecl(); in BuiltinTypeDeclBuilder()
H A DSemaCXXScopeSpec.cpp372 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
563 if (NamedDecl *ND = Corrected.getFoundDecl()) in BuildCXXNestedNameSpecifier()
H A DSemaExprObjC.cpp2113 Corrected.isKeyword() ? nullptr : Corrected.getFoundDecl(); in HandleExprPropertyRefExpr()
2335 NamedDecl *ND = Result.getFoundDecl(); in getObjCMessageKind()
4020 NamedDecl *Target = R.getFoundDecl(); in CheckObjCBridgeNSCast()
4084 Target = R.getFoundDecl(); in CheckObjCBridgeCFCast()
4249 Target = R.getFoundDecl(); in checkObjCBridgeRelatedComponents()
4801 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()); in LookupIvarInObjCMethod()
4834 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()) { in LookupIvarInObjCMethod()
4837 dyn_cast<ObjCIvarDecl>(Lookup.getFoundDecl())) { in LookupIvarInObjCMethod()
5141 NamedDecl *ND = Result.getFoundDecl(); in ActOnObjCBoolLiteral()
H A DSemaTemplate.cpp520 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()
695 auto *ND = Corrected.getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
1254 TL.getNamedConcept(), /*FoundDecl=*/TL.getFoundDecl(), TL.getLAngleLoc(), in AttachTypeConstraint()
3826 if (Corrected && Corrected.getFoundDecl()) { in resolveAssumedTemplateNameAsType()
4826 !R.getFoundDecl()->getAsFunction()) in BuildTemplateIdExpr()
9644 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
[all …]
H A DSemaLookup.cpp4684 IsDeprecated(Correction.getFoundDecl()), in addCorrection()
4688 IsDeprecated(RI->getFoundDecl()), in addCorrection()
5047 Res.getFoundDecl()->isDefinedOutsideFunctionOrMethod()))) { in LookupPotentialTypoResult()
5742 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5754 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()
H A DSemaExprMember.cpp300 return isa<FieldDecl, IndirectFieldDecl, MSPropertyDecl>(R.getFoundDecl()); in isPotentialImplicitMemberAccess()
990 NamedDecl *MemberDecl = R.getFoundDecl(); in BuildMemberReferenceExpr()
H A DSemaDecl.cpp526 IIDecl = Result.getFoundDecl(); in getTypeName()
987 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName()
1507 return Previous.getFoundDecl()->hasAttr<OverloadableAttr>(); in AllowOverloadingOfFunction()
4568 OldTemplate = dyn_cast<VarTemplateDecl>(Previous.getFoundDecl()); in MergeVarDecl()
4576 Old = dyn_cast<VarDecl>(Previous.getFoundDecl()); in MergeVarDecl()
8150 isDeclInScope(Previous.getFoundDecl(), OriginalDC, S, false)); in ActOnVariableDeclarator()
8164 isa<FieldDecl>(Previous.getFoundDecl()) && in ActOnVariableDeclarator()
8338 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
8352 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
8361 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
[all …]
H A DSemaOpenACC.cpp565 DRE->getFoundDecl()->getCanonicalDecl())) in ActOnCacheVar()
662 DRE->getFoundDecl()->getCanonicalDecl())) in ActOnVar()
H A DSemaDeclCXX.cpp890 Previous.getFoundDecl()->isTemplateParameter()) { in ActOnDecompositionDeclarator()
891 DiagnoseTemplateParameterShadow(B.NameLoc, Previous.getFoundDecl()); in ActOnDecompositionDeclarator()
12373 auto *ND = cast<NamespaceDecl>(Corrected.getFoundDecl()); in DiagnoseInvisibleNamespace()
12380 << (int)Sema::MissingImportKind::Declaration << Corrected.getFoundDecl() in DiagnoseInvisibleNamespace()
12385 << (int)Sema::MissingImportKind::Declaration << Corrected.getFoundDecl() in DiagnoseInvisibleNamespace()
12404 if (isa_and_nonnull<NamespaceDecl>(Corrected.getFoundDecl()) && in TryNamespaceTypoCorrection()
12420 R.addDecl(Corrected.getFoundDecl()); in TryNamespaceTypoCorrection()
13107 Previous.getFoundDecl()->isTemplateParameter()) in BuildUsingDeclaration()
13108 DiagnoseTemplateParameterShadow(IdentLoc, Previous.getFoundDecl()); in BuildUsingDeclaration()
13260 Diag(R.getFoundDecl()->getLocation(), diag::note_using_decl_target); in BuildUsingDeclaration()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp215 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr()
269 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp355 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in checkPreStmt()
365 if (DE->getFoundDecl()->getName() == "kCFAllocatorNull") in checkPreStmt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.cpp190 auto *FoundDecl = Ref->getFoundDecl(); in isASafeCallArg()
H A DRawPtrRefLocalVarsChecker.cpp315 dyn_cast_or_null<VarDecl>(Ref->getFoundDecl())) { in visitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTextNodeDumper.cpp1523 if (Node->getDecl() != Node->getFoundDecl()) { in VisitDeclRefExpr()
1525 dumpBareDeclRef(Node->getFoundDecl()); in VisitDeclRefExpr()
1934 dumpBareDeclRef(Node->getFoundDecl()); in VisitConceptSpecializationExpr()
2120 dumpDeclRef(T->getFoundDecl()); in VisitUsingType()
2748 if (TC->getNamedConcept() != TC->getFoundDecl()) { in VisitTemplateTypeParmDecl()
2750 dumpBareDeclRef(TC->getFoundDecl()); in VisitTemplateTypeParmDecl()
H A DASTStructuralEquivalence.cpp282 return IsStructurallyEquivalent(Context, E1->getFoundDecl(), in IsStmtEquivalent()
283 E2->getFoundDecl()); in IsStmtEquivalent()
1215 if (!IsStructurallyEquivalent(Context, cast<UsingType>(T1)->getFoundDecl(), in IsStructurallyEquivalent()
1216 cast<UsingType>(T2)->getFoundDecl())) in IsStructurallyEquivalent()
H A DJSONNodeDumper.cpp609 JOS.attribute("decl", createBareDeclRef(TT->getFoundDecl())); in VisitUsingType()
1343 if (DRE->getDecl() != DRE->getFoundDecl()) in VisitDeclRefExpr()
1345 createBareDeclRef(DRE->getFoundDecl())); in VisitDeclRefExpr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp695 CurrentPackingBits.addBit(E->getDecl() != E->getFoundDecl()); in VisitDeclRefExpr()
707 (E->getDecl() == E->getFoundDecl()) && in VisitDeclRefExpr()
715 if (E->getDecl() != E->getFoundDecl()) in VisitDeclRefExpr()
716 Record.AddDeclRef(E->getFoundDecl()); in VisitDeclRefExpr()
1020 DeclAccessPair FoundDecl = E->getFoundDecl(); in VisitMemberExpr()

12