Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h66 return visit(Expr->getFoundDecl(), Expr->getLocation()); in VisitDeclRefExpr()
70 return visit(Expr->getFoundDecl().getDecl(), Expr->getMemberLoc()); in VisitMemberExpr()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DTypoCorrection.h147 NamedDecl *getFoundDecl() const { in getFoundDecl() function
153 auto *D = getFoundDecl(); in getCorrectionDecl()
H A DLookup.h498 return dyn_cast<DeclClass>(getFoundDecl()); in getAsSingle()
506 NamedDecl *getFoundDecl() const { in getFoundDecl() function
520 return getResultKind() == Found && isa<TagDecl>(getFoundDecl()); in isSingleTagDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmtAsm.cpp745 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
781 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
824 ValueDecl *FD = dyn_cast<FieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
826 FD = dyn_cast<IndirectFieldDecl>(FieldResult.getFoundDecl()); in LookupInlineAsmVarDeclField()
H A DScopeInfo.cpp242 VD = dyn_cast<VarDecl>(DRE->getFoundDecl()); in getPotentialVariableCapture()
H A DSemaCXXScopeSpec.cpp377 NamedDecl *Result = Found.getFoundDecl(); in FindFirstQualifierInScope()
639 if (NamedDecl *ND = Corrected.getFoundDecl()) in BuildCXXNestedNameSpecifier()
H A DSemaTemplate.cpp408 if (auto *ND = Corrected.getFoundDecl()) in LookupTemplateName()
478 Found.getFoundDecl()->getCanonicalDecl() in LookupTemplateName()
479 != FoundOuter.getFoundDecl()->getCanonicalDecl()) { in LookupTemplateName()
487 Diag(FoundOuter.getFoundDecl()->getLocation(), in LookupTemplateName()
518 Found = DRE->getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
567 auto *ND = Corrected.getFoundDecl(); in diagnoseExprIntendedAsTemplateName()
8379 (PrevVar = dyn_cast<VarDecl>(Previous.getFoundDecl()))) in CheckMemberSpecialization()
8398 (PrevEnum = dyn_cast<EnumDecl>(Previous.getFoundDecl()))) { in CheckMemberSpecialization()
9724 if (TypeDecl *Type = dyn_cast<TypeDecl>(Result.getFoundDecl())) { in CheckTypenameType()
9760 if (auto *TD = getAsTypeTemplateDecl(Result.getFoundDecl())) { in CheckTypenameType()
[all …]
H A DSemaDecl.cpp458 IIDecl = Result.getFoundDecl(); in getTypeName()
937 NamedDecl *FirstDecl = Corrected.getFoundDecl(); in ClassifyName()
3804 Old = dyn_cast<VarDecl>(Previous.getFoundDecl()); in MergeVarDecl()
5464 Previous.getFoundDecl()->isTemplateParameter()) { in HandleDeclarator()
6821 isa<FieldDecl>(Previous.getFoundDecl()) && in ActOnVariableDeclarator()
6981 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
6998 NamedDecl *ShadowedDecl = R.getFoundDecl(); in getShadowedDeclaration()
9989 OldDecl = Previous.getFoundDecl(); in CheckFunctionDeclaration()
12416 NamedDecl *PrevDecl = R.getFoundDecl(); in ActOnParamDeclarator()
14297 NamedDecl *ND = Previous.getFoundDecl(); in ActOnTag()
[all …]
H A DSemaExprObjC.cpp1935 Corrected.isKeyword() ? nullptr : Corrected.getFoundDecl(); in HandleExprPropertyRefExpr()
2154 NamedDecl *ND = Result.getFoundDecl(); in getObjCMessageKind()
3798 Target = R.getFoundDecl(); in CheckObjCBridgeNSCast()
3864 Target = R.getFoundDecl(); in CheckObjCBridgeCFCast()
4032 Target = R.getFoundDecl(); in checkObjCBridgeRelatedComponents()
H A DSemaTemplateVariadic.cpp965 ParameterPack = R.getFoundDecl(); in ActOnSizeofParameterPackExpr()
H A DSemaExpr.cpp1929 NamedDecl *ND = Corrected.getFoundDecl(); in DiagnoseEmptyLookup()
2287 MightBeImplicitMember = isa<FieldDecl>(R.getFoundDecl()) || in ActOnIdExpression()
2288 isa<IndirectFieldDecl>(R.getFoundDecl()) || in ActOnIdExpression()
2289 isa<MSPropertyDecl>(R.getFoundDecl()); in ActOnIdExpression()
2506 Lookup.getFoundDecl()->isDefinedOutsideFunctionOrMethod()) { in LookupInObjCMethod()
2779 const auto *FD = dyn_cast<FunctionDecl>(R.getFoundDecl()); in ShouldLookupResultBeMultiVersionOverload()
2800 CheckDeclInExpr(*this, R.getNameLoc(), R.getFoundDecl())) in BuildDeclarationNameExpr()
3747 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DeclRef->getFoundDecl())) { in CheckUnaryExprOrTypeTraitOperand()
4833 if (NamedDecl *ND = Corrected.getFoundDecl()) { in TryTypoCorrectionForCall()
15546 Var = dyn_cast<VarDecl>(DRE->getFoundDecl()); in UpdateMarkingForLValueToRValue()
[all …]
H A DSemaLookup.cpp4390 Res.getFoundDecl()->isDefinedOutsideFunctionOrMethod()))) { in LookupPotentialTypoResult()
5161 NamedDecl *Decl = Correction.getFoundDecl(); in diagnoseTypo()
5173 Correction.isKeyword() ? nullptr : Correction.getFoundDecl(); in diagnoseTypo()
H A DSemaDeclCXX.cpp800 Previous.getFoundDecl()->isTemplateParameter()) { in ActOnDecompositionDeclarator()
802 Previous.getFoundDecl()); in ActOnDecompositionDeclarator()
9351 R.addDecl(Corrected.getFoundDecl()); in TryNamespaceTypoCorrection()
10129 Diag(R.getFoundDecl()->getLocation(), diag::note_using_decl_target); in BuildUsingDeclaration()
10520 Previous.getFoundDecl()->isTemplateParameter()) { in ActOnAliasDeclaration()
10521 DiagnoseTemplateParameterShadow(Name.StartLocation,Previous.getFoundDecl()); in ActOnAliasDeclaration()
10667 if (PrevR.isSingleResult() && PrevR.getFoundDecl()->isTemplateParameter()) { in ActOnNamespaceAliasDef()
10668 DiagnoseTemplateParameterShadow(AliasLoc, PrevR.getFoundDecl()); in ActOnNamespaceAliasDef()
H A DSemaCoroutine.cpp1082 S.Diag(Found.getFoundDecl()->getLocation(), diag::note_member_declared_here) in makeReturnOnAllocFailure()
H A DSemaExprCXX.cpp7515 if (auto *ND = TC.getFoundDecl()) { in attemptRecovery()
7635 return DRE->getFoundDecl(); in getDeclFromExpr()
7637 return ME->getFoundDecl(); in getDeclFromExpr()
7742 if (InitDecl && TC.getFoundDecl() == InitDecl) in TransformTypoExpr()
H A DSemaExprMember.cpp1059 NamedDecl *MemberDecl = R.getFoundDecl(); in BuildMemberReferenceExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp216 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitMemberExpr()
251 const NamedDecl *Decl = Expr->getFoundDecl(); in VisitDeclRefExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DMacOSKeychainAPIChecker.cpp361 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in checkPreStmt()
371 if (DE->getFoundDecl()->getName() == "kCFAllocatorNull") in checkPreStmt()
H A DMallocChecker.cpp2715 StringRef DeallocatorName = DE->getFoundDecl()->getName(); in mayFreeAnyEscapedMemoryOrIsModeledExplicitly()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DTextNodeDumper.cpp685 if (Node->getDecl() != Node->getFoundDecl()) { in VisitDeclRefExpr()
687 dumpBareDeclRef(Node->getFoundDecl()); in VisitDeclRefExpr()
H A DASTImporter.cpp6125 if (E->getDecl() != E->getFoundDecl()) { in VisitDeclRefExpr()
6126 auto FoundDOrErr = import(E->getFoundDecl()); in VisitDeclRefExpr()
7040 E->getFoundDecl().getDecl(), E->getMemberNameInfo().getName(), in VisitMemberExpr()
7050 DeclAccessPair::make(ToDecl, E->getFoundDecl().getAccess()); in VisitMemberExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp1160 if (!InstRecIg || !InstRecIg->getFoundDecl() || in isCallToSelfClass()
1161 !InstRecIg->getFoundDecl()->getName().equals("self")) in isCallToSelfClass()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriterStmt.cpp451 Record.push_back(E->getDecl() != E->getFoundDecl()); in VisitDeclRefExpr()
464 (E->getDecl() == E->getFoundDecl()) && in VisitDeclRefExpr()
472 if (E->getDecl() != E->getFoundDecl()) in VisitDeclRefExpr()
473 Record.AddDeclRef(E->getFoundDecl()); in VisitDeclRefExpr()
678 DeclAccessPair FoundDecl = E->getFoundDecl(); in VisitMemberExpr()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DExpr.h1151 NamedDecl *getFoundDecl() { in getFoundDecl() function
1157 const NamedDecl *getFoundDecl() const { in getFoundDecl() function
2782 DeclAccessPair getFoundDecl() const { in getFoundDecl() function
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h3313 const NamedDecl *FoundDecl = Node.getFoundDecl(); in AST_MATCHER_P()

12