| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnusedUsingDeclsCheck.cpp | 91 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 D | TemplateNameTest.cpp | 48 EXPECT_EQ(TN.getAsUsingShadowDecl()->getTargetDecl(), TN.getAsTemplateDecl()); in TEST() 84 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
|
| H A D | ASTImporterTest.cpp | 7361 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 D | SemaAccess.cpp | 189 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 D | SemaCUDA.cpp | 682 D = Using->getTargetDecl(); in maybeAddCUDAHostDeviceAttrs()
|
| H A D | SemaOverload.cpp | 1043 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 D | SemaDecl.cpp | 507 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 D | SemaLookup.cpp | 3653 D = USD->getTargetDecl(); in LookupLiteralOperator() 3858 Underlying = USD->getTargetDecl(); in ArgumentDependentLookup()
|
| H A D | SemaCodeComplete.cpp | 1097 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 D | SemaTemplateInstantiateDecl.cpp | 3122 NamedDecl *OldTarget = Shadow->getTargetDecl(); in VisitBaseUsingDecls() 3129 dyn_cast<UnresolvedUsingIfExistsDecl>(Shadow->getTargetDecl())) { in VisitBaseUsingDecls()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | TemplateName.cpp | 111 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl() 124 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl()
|
| H A D | TextNodeDumper.cpp | 2165 dumpBareDeclRef(D->getTargetDecl()); in VisitUsingShadowDecl() 2175 dumpBareDeclRef(D->getTargetDecl()); in VisitConstructorUsingShadowDecl()
|
| H A D | JSONNodeDumper.cpp | 806 JOS.attribute("target", createBareDeclRef(USD->getTargetDecl())); in VisitUsingShadowDecl()
|
| H A D | Decl.cpp | 1858 ND = UD->getTargetDecl(); in getUnderlyingDeclImpl() 1875 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in isCXXInstanceMember()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | LookupTest.cpp | 217 auto *TD = Type.getFoundDecl()->getTargetDecl(); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 273 Decl = UsingShadow->getTargetDecl(); in VisitDeclRefExpr() 344 if (isInUSRSet(UsingShadow->getTargetDecl())) { in VisitUsingDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | DelayedDiagnostic.h | 80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() function
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 852 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 D | QualityTests.cpp | 151 CodeCompletionResult Result(Shadow->getTargetDecl(), 42); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | IncludeCleaner.cpp | 132 add(Shadow->getTargetDecl()); in VisitUsingDecl()
|
| H A D | SemanticHighlighting.cpp | 74 if (auto *Target = USD->getTargetDecl()) in kindForDecl()
|
| H A D | FindTarget.cpp | 215 D = USD->getTargetDecl(); in add()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | RenamerClangTidyCheck.cpp | 354 addUsage(Shadow->getTargetDecl(), Decl->getNameInfo().getSourceRange(), in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclCXX.h | 3284 NamedDecl *getTargetDecl() const { return Underlying; } in getTargetDecl() function 3591 : getTargetDecl()) in getConstructedBaseClass()
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 6430 return InnerMatcher.matches(*Node.getTargetDecl(), Finder, Builder); in AST_MATCHER_P()
|