Home
last modified time | relevance | path

Searched refs:FoundDecl (Results 1 – 25 of 39) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp42 if (!FoundDecl) in getCanonicalSymbolDeclaration()
47 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
49 FoundDecl = DtorDecl->getParent(); in getCanonicalSymbolDeclaration()
55 return FoundDecl; in getCanonicalSymbolDeclaration()
66 : FoundDecl(FoundDecl), Context(Context) {} in AdditionalUSRFinder()
100 USRSet.insert(getUSRForDecl(FoundDecl)); in Find()
209 const Decl *FoundDecl; member in clang::tooling::__anon02dbeb760111::AdditionalUSRFinder
252 const NamedDecl *FoundDecl = QualifiedName.empty() in FindSymbol() local
256 if (FoundDecl == nullptr) { in FindSymbol()
280 FoundDecl = getCanonicalSymbolDeclaration(FoundDecl); in FindSymbol()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTConcept.h115 NamedDecl *FoundDecl; variable
126 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in ConceptReference() argument
130 ConceptName(ConceptNameInfo), FoundDecl(FoundDecl), in ConceptReference()
134 : FoundDecl(nullptr), NamedConcept(nullptr), ArgsAsWritten(nullptr) {} in ConceptReference()
149 return FoundDecl; in getFoundDecl()
174 DeclarationNameInfo ConceptNameInfo, NamedDecl *FoundDecl, in TypeConstraint() argument
179 FoundDecl, NamedConcept, ArgsAsWritten), in TypeConstraint()
H A DExprConcepts.h61 NamedDecl *FoundDecl, ConceptDecl *NamedConcept,
79 NamedDecl *FoundDecl, ConceptDecl *NamedConcept,
H A DTypeLoc.h2104 NamedDecl *FoundDecl; member
2157 return getLocalData()->FoundDecl; in getFoundDecl()
2161 getLocalData()->FoundDecl = D; in setFoundDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedAliasDeclsCheck.cpp48 for (const auto &FoundDecl : FoundDecls) { in onEndOfTranslationUnit() local
49 if (!FoundDecl.second.isValid()) in onEndOfTranslationUnit()
51 diag(FoundDecl.first->getLocation(), "namespace alias decl %0 is unused") in onEndOfTranslationUnit()
52 << FoundDecl.first << FixItHint::CreateRemoval(FoundDecl.second); in onEndOfTranslationUnit()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConcepts.cpp36 NamedDecl *FoundDecl, ConceptDecl *NamedConcept, in ConceptSpecializationExpr() argument
41 ConceptReference(NNS, TemplateKWLoc, ConceptNameInfo, FoundDecl, in ConceptSpecializationExpr()
76 NamedDecl *FoundDecl, in Create() argument
84 ConceptNameInfo, FoundDecl, in Create()
H A DASTImporter.cpp2386 for (auto *FoundDecl : FoundDecls) { in VisitNamespaceDecl() local
2721 FoundDecl = Tag->getDecl(); in VisitEnumDecl()
2840 Decl *Found = FoundDecl; in VisitRecordDecl()
3716 for (auto *FoundDecl : FoundDecls) { in VisitFieldDecl() local
4006 for (auto *FoundDecl : FoundDecls) { in VisitObjCIvarDecl() local
4312 for (auto *FoundDecl : FoundDecls) { in VisitObjCMethodDecl() local
4623 for (auto *FoundDecl : FoundDecls) { in VisitObjCProtocolDecl() local
5146 for (auto *FoundDecl : FoundDecls) { in VisitObjCInterfaceDecl() local
5319 for (auto *FoundDecl : FoundDecls) { in VisitObjCPropertyDecl() local
5628 Decl *Found = FoundDecl; in VisitClassTemplateDecl()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp6384 Candidate.FoundDecl = FoundDecl; in AddOverloadCandidate()
6960 Candidate.FoundDecl = FoundDecl; in AddMethodCandidate()
7115 Candidate.FoundDecl = FoundDecl; in AddMethodTemplateCandidate()
7169 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7197 Candidate.FoundDecl = FoundDecl; in AddTemplateOverloadCandidate()
7377 Candidate.FoundDecl = FoundDecl; in AddConversionCandidate()
7555 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7568 Candidate.FoundDecl = FoundDecl; in AddTemplateConversionCandidate()
7608 Candidate.FoundDecl = FoundDecl; in AddSurrogateCandidate()
12921 R.addDecl(Best->FoundDecl.getDecl(), Best->FoundDecl.getAccess()); in DiagnoseTwoPhaseLookup()
[all …]
H A DSemaStmtAsm.cpp821 NamedDecl *FoundDecl = nullptr; in LookupInlineAsmField() local
826 FoundDecl = PT->getPointeeType()->getAsTagDecl(); in LookupInlineAsmField()
831 FoundDecl = BaseResult.getFoundDecl(); in LookupInlineAsmField()
834 if (!FoundDecl) in LookupInlineAsmField()
839 if (VarDecl *VD = dyn_cast<VarDecl>(FoundDecl)) in LookupInlineAsmField()
841 else if (TypedefNameDecl *TD = dyn_cast<TypedefNameDecl>(FoundDecl)) { in LookupInlineAsmField()
848 } else if (TypeDecl *TD = dyn_cast<TypeDecl>(FoundDecl)) in LookupInlineAsmField()
850 else if (FieldDecl *TD = dyn_cast<FieldDecl>(FoundDecl)) in LookupInlineAsmField()
867 FoundDecl = FieldResult.getFoundDecl(); in LookupInlineAsmField()
870 FieldDecl *FD = dyn_cast<FieldDecl>(FoundDecl); in LookupInlineAsmField()
H A DSemaExprMember.cpp897 SourceLocation TemplateKWLoc, ValueDecl *Member, DeclAccessPair FoundDecl, in BuildMemberExpr() argument
904 FoundDecl, HadMultipleCandidates, MemberNameInfo, Ty, in BuildMemberExpr()
918 Member, FoundDecl, MemberNameInfo, TemplateArgs, Ty, in BuildMemberExpr()
1064 DeclAccessPair FoundDecl = R.begin().getPair(); in BuildMemberReferenceExpr() local
1085 FoundDecl, TemplateArgs); in BuildMemberReferenceExpr()
1109 FoundDecl, BaseExpr, in BuildMemberReferenceExpr()
1114 FoundDecl, /*HadMultipleCandidates=*/false, in BuildMemberReferenceExpr()
1138 FoundDecl, /*HadMultipleCandidates=*/false, in BuildMemberReferenceExpr()
1165 BaseExpr, IsArrow, OpLoc, &SS, TemplateKWLoc, Var, FoundDecl, in BuildMemberReferenceExpr()
1802 FieldDecl *Field, DeclAccessPair FoundDecl, in BuildFieldReferenceExpr() argument
[all …]
H A DSemaInit.cpp3607 S.Function.FoundDecl = Found; in AddAddressOverloadResolutionStep()
3657 S.Function.FoundDecl = FoundDecl; in AddUserConversionStep()
3722 S.Function.FoundDecl = FoundDecl; in AddConstructorInitializationStep()
3991 Info.ConstructorTmpl, Info.FoundDecl, in ResolveConstructorOverload()
4625 Info.ConstructorTmpl, Info.FoundDecl, in TryRefInitWithConversionFunction()
5294 Info.ConstructorTmpl, Info.FoundDecl, in TryUserDefinedConversion()
5373 Sequence.AddUserConversionStep(Function, Best->FoundDecl, in TryUserDefinedConversion()
6475 Best->FoundDecl, Entity, Diag); in CheckCXX98CompatAccessibleCopy()
6611 Step.Function.FoundDecl.getDecl())) { in PerformConstructorInitialization()
6676 if (S.DiagnoseUseOfDecl(Step.Function.FoundDecl, Loc)) in PerformConstructorInitialization()
[all …]
H A DSemaAccess.cpp171 DeclAccessPair FoundDecl, in AccessTarget()
174 FoundDecl, BaseObjectType) { in AccessTarget()
1795 DeclAccessPair FoundDecl) { in CheckMemberOperatorAccess() argument
1802 return CheckMemberOperatorAccess(OpLoc, ObjectExpr, R, FoundDecl); in CheckMemberOperatorAccess()
H A DSemaStmt.cpp1821 bool FoundDecl; member in __anonb6e159cd0d11::DeclMatcher
1827 Inherited(S.Context), Decls(Decls), FoundDecl(false) { in DeclMatcher()
1834 FoundDecl = true; in VisitReturnStmt()
1838 FoundDecl = true; in VisitBreakStmt()
1842 FoundDecl = true; in VisitGotoStmt()
1879 FoundDecl = true; in VisitDeclRefExpr()
1894 bool FoundDeclInUse() { return FoundDecl; } in FoundDeclInUse()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterFixtures.h404 auto FoundDecl = match(Action.ImportPredicate.bind(DeclToImportID), in testImportSequence() local
406 EXPECT_TRUE(FoundDecl.size() == 1); in testImportSequence()
407 const Decl *ToImport = selectFirst<Decl>(DeclToImportID, FoundDecl); in testImportSequence()
415 auto FoundDecl = match(FinalSelectPredicate.bind(DeclToVerifyID), in testImportSequence() local
417 EXPECT_TRUE(FoundDecl.size() == 1); in testImportSequence()
418 const Decl *ToVerify = selectFirst<Decl>(DeclToVerifyID, FoundDecl); in testImportSequence()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDelayedDiagnostic.h62 DeclAccessPair FoundDecl, QualType BaseObjectType) in AccessedEntity() argument
63 : Access(FoundDecl.getAccess()), IsMember(true), in AccessedEntity()
64 Target(FoundDecl.getDecl()), NamingClass(NamingClass), in AccessedEntity()
H A DTemplateDeduction.h293 DeclAccessPair FoundDecl; member
303 FoundDecl = Found; in set()
H A DInitialization.h941 DeclAccessPair FoundDecl; member
1280 DeclAccessPair FoundDecl,
1309 void AddConstructorInitializationStep(DeclAccessPair FoundDecl,
H A DOverload.h820 DeclAccessPair FoundDecl; member
1185 DeclAccessPair FoundDecl; member
H A DSema.h3863 void AddMethodCandidate(DeclAccessPair FoundDecl,
3871 DeclAccessPair FoundDecl,
3881 DeclAccessPair FoundDecl,
3906 CXXConversionDecl *Conversion, DeclAccessPair FoundDecl,
3916 DeclAccessPair FoundDecl,
5652 DeclAccessPair FoundDecl,
5680 ValueDecl *Member, DeclAccessPair FoundDecl,
5688 ValueDecl *Member, DeclAccessPair FoundDecl,
6074 NamedDecl *FoundDecl,
6096 NamedDecl *FoundDecl,
[all …]
H A DSemaInternal.h113 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
H A DLookup.h812 virtual void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/
H A DUSRFindingAction.h37 const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl);
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp228 DeclAccessPair FoundDecl = DeclAccessPair::make(MemberDecl, AS_public); in makeMemberExpression() local
231 SourceLocation(), MemberDecl, FoundDecl, in makeMemberExpression()
247 for (NamedDecl *FoundDecl : Decls) in findMemberField()
248 if (!FoundDecl->getDeclContext()->isFunctionOrMethod()) in findMemberField()
249 return cast<ValueDecl>(FoundDecl); in findMemberField()
/llvm-project-15.0.7/clang/docs/
H A DLibASTImporter.rst53 for (auto FoundDecl : FoundDeclsList) {
54 if (StructurallyEquivalentDecls(FoundDecl, FromD)) {
55 ToDecl = FoundDecl;
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeFixer.cpp468 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx, in collectAccessibleScopes() function

12