Home
last modified time | relevance | path

Searched refs:getTargetDecl (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp91 const auto *TargetDecl = UsingShadow->getTargetDecl()->getCanonicalDecl(); in check()
126 removeFromFoundDecls(UsedShadow->getTargetDecl()); in check()
151 removeFromFoundDecls(USD->getTargetDecl()->getCanonicalDecl()); in check()
/llvm-project-15.0.7/clang/unittests/AST/
H A DTemplateNameTest.cpp48 EXPECT_EQ(TN.getAsUsingShadowDecl()->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
84 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
H A DASTImporterTest.cpp7361 EXPECT_EQ(ShadowBA->getTargetDecl(), ConstrA); in TEST_P()
7367 EXPECT_EQ(ShadowCA->getTargetDecl(), ConstrA); in TEST_P()
7467 EXPECT_EQ(ShadowD2V1A->getTargetDecl(), ConstrA); in TEST_P()
7473 EXPECT_EQ(ShadowD2V1B->getTargetDecl(), ConstrB); in TEST_P()
7479 EXPECT_EQ(ShadowD2V2A->getTargetDecl(), ConstrA); in TEST_P()
7485 EXPECT_EQ(ShadowD2V2B->getTargetDecl(), ConstrB); in TEST_P()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAccess.cpp189 return (isMemberAccess() && getTargetDecl()->isCXXInstanceMember()); in isInstanceMember()
252 getTargetDecl()->isCXXInstanceMember()); in initialize()
257 DeclaringClass = FindDeclaringClass(getTargetDecl()); in initialize()
1058 NamedDecl *D = Target.getTargetDecl(); in TryDiagnoseProtectedAccess()
1110 NamedDecl *D = entity.getTargetDecl(); in diagnoseBadDirectAccess()
1177 NamedDecl *D = entity.getTargetDecl(); in DiagnoseAccessPath()
1268 S.Diag(entity.getTargetDecl()->getLocation(), in DiagnoseAccessPath()
1311 dyn_cast<UsingShadowDecl>(Entity.getTargetDecl())) in IsMicrosoftUsingDeclarationAccessBug()
1314 if (Entity.getTargetDecl()->getAccess() == AS_private && in IsMicrosoftUsingDeclarationAccessBug()
1367 NamedDecl *Target = Entity.getTargetDecl(); in IsAccessible()
[all …]
H A DSemaCUDA.cpp682 D = Using->getTargetDecl(); in maybeAddCUDAHostDeviceAttrs()
H A DSemaOverload.cpp1043 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
3540 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in IsUserDefinedConversion()
4633 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in FindConversionForRefInit()
6055 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in collectViableConversionCandidates()
6904 Decl = cast<UsingShadowDecl>(Decl)->getTargetDecl(); in AddMethodCandidate()
8124 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in AddTypesConvertedFrom()
8196 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in CollectVRQualifiers()
12773 Callee = cast<UsingShadowDecl>(Callee)->getTargetDecl(); in AddOverloadedCallCandidate()
14500 Func = cast<UsingShadowDecl>(Func)->getTargetDecl(); in BuildCallToMemberFunction()
14745 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in BuildCallToObjectOfClassType()
H A DSemaDecl.cpp507 assert(!FoundUsingShadow || FoundUsingShadow->getTargetDecl() == TD); in getTypeName()
1119 TD == cast<TemplateDecl>(FoundUsingShadow->getTargetDecl())); in ClassifyName()
3456 auto *Old = dyn_cast<ExpectedDecl>(OldS->getTargetDecl()); in checkUsingShadowRedecl()
3465 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target); in checkUsingShadowRedecl()
3549 Diag(Shadow->getTargetDecl()->getLocation(), in MergeFunctionDecl()
3563 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl()
3568 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl()); in MergeFunctionDecl()
16602 Diag(Shadow->getTargetDecl()->getLocation(), in ActOnTag()
H A DSemaLookup.cpp3653 D = USD->getTargetDecl(); in LookupLiteralOperator()
3858 Underlying = USD->getTargetDecl(); in ArgumentDependentLookup()
H A DSemaCodeComplete.cpp1097 CodeCompletionResult Result(Using->getTargetDecl(), in MaybeAddResult()
1098 getBasePriority(Using->getTargetDecl()), in MaybeAddResult()
1272 CodeCompletionResult Result(Using->getTargetDecl(), in AddResult()
1273 getBasePriority(Using->getTargetDecl()), in AddResult()
H A DSemaTemplateInstantiateDecl.cpp3122 NamedDecl *OldTarget = Shadow->getTargetDecl(); in VisitBaseUsingDecls()
3129 dyn_cast<UnresolvedUsingIfExistsDecl>(Shadow->getTargetDecl())) { in VisitBaseUsingDecls()
/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateName.cpp111 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl()
124 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl()
H A DTextNodeDumper.cpp2165 dumpBareDeclRef(D->getTargetDecl()); in VisitUsingShadowDecl()
2175 dumpBareDeclRef(D->getTargetDecl()); in VisitConstructorUsingShadowDecl()
H A DJSONNodeDumper.cpp806 JOS.attribute("target", createBareDeclRef(USD->getTargetDecl())); in VisitUsingShadowDecl()
H A DDecl.cpp1858 ND = UD->getTargetDecl(); in getUnderlyingDeclImpl()
1875 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in isCXXInstanceMember()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DLookupTest.cpp217 auto *TD = Type.getFoundDecl()->getTargetDecl(); in TEST()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp273 Decl = UsingShadow->getTargetDecl(); in VisitDeclRefExpr()
344 if (isInUSRSet(UsingShadow->getTargetDecl())) { in VisitUsingDecl()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDelayedDiagnostic.h80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() function
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp852 const auto *TargetDecl = UsingShadow->getTargetDecl(); in replaceQualifiedSymbolInDeclContext()
937 UsingDeclaration->shadow_begin()->getTargetDecl(); in fixUsingShadowDecl()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp151 CodeCompletionResult Result(Shadow->getTargetDecl(), 42); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeCleaner.cpp132 add(Shadow->getTargetDecl()); in VisitUsingDecl()
H A DSemanticHighlighting.cpp74 if (auto *Target = USD->getTargetDecl()) in kindForDecl()
H A DFindTarget.cpp215 D = USD->getTargetDecl(); in add()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp354 addUsage(Shadow->getTargetDecl(), Decl->getNameInfo().getSourceRange(), in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h3284 NamedDecl *getTargetDecl() const { return Underlying; } in getTargetDecl() function
3591 : getTargetDecl()) in getConstructedBaseClass()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6430 return InnerMatcher.matches(*Node.getTargetDecl(), Finder, Builder); in AST_MATCHER_P()

12