/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | UnusedUsingDeclsCheck.cpp | 113 const auto *TargetDecl = UsingShadow->getTargetDecl()->getCanonicalDecl(); in check() 151 removeFromFoundDecls(UsedShadow->getTargetDecl()); in check() 182 removeFromFoundDecls(USD->getTargetDecl()->getCanonicalDecl()); in check()
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 186 return (isMemberAccess() && getTargetDecl()->isCXXInstanceMember()); in isInstanceMember() 259 getTargetDecl()->isCXXInstanceMember()); in initialize() 264 DeclaringClass = FindDeclaringClass(getTargetDecl()); in initialize() 1065 NamedDecl *D = Target.getTargetDecl(); in TryDiagnoseProtectedAccess() 1117 NamedDecl *D = entity.getTargetDecl(); in diagnoseBadDirectAccess() 1184 NamedDecl *D = entity.getTargetDecl(); in DiagnoseAccessPath() 1275 S.Diag(entity.getTargetDecl()->getLocation(), in DiagnoseAccessPath() 1284 NamedDecl *D = (Entity.isMemberAccess() ? Entity.getTargetDecl() : nullptr); in DiagnoseBadAccess() 1318 dyn_cast<UsingShadowDecl>(Entity.getTargetDecl())) in IsMicrosoftUsingDeclarationAccessBug() 1320 const NamedDecl *OrigDecl = Entity.getTargetDecl() in IsMicrosoftUsingDeclarationAccessBug() [all...] |
H A D | SemaCUDA.cpp | 771 D = Using->getTargetDecl(); in maybeAddHostDeviceAttrs()
|
H A D | SemaOverload.cpp | 1214 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload() 3963 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in compareConversionFunctions() 5052 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in TryReferenceInit() 6641 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in PerformContextualImplicitConversion() 7544 Decl = cast<UsingShadowDecl>(Decl)->getTargetDecl(); in AddMethodCandidate() 8813 D = cast<UsingShadowDecl>(D)->getTargetDecl(); 8885 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in InitArithmeticTypes() 13654 Callee = cast<UsingShadowDecl>(Callee)->getTargetDecl(); in DiagnoseTwoPhaseLookup() 15536 Func = cast<UsingShadowDecl>(Func)->getTargetDecl(); in BuildCallToMemberFunction() 15822 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in BuildCallToObjectOfClassType() [all...] |
H A D | SemaDecl.cpp | 539 assert(!FoundUsingShadow || FoundUsingShadow->getTargetDecl() == TD); in getTypeName() 1120 TD == cast<TemplateDecl>(FoundUsingShadow->getTargetDecl())); in ClassifyName() 3484 auto *Old = dyn_cast<ExpectedDecl>(OldS->getTargetDecl()); in adjustDeclContextForDeclaratorDecl() 3493 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target); in adjustDeclContextForDeclaratorDecl() 3566 Diag(Shadow->getTargetDecl()->getLocation(), in MergeFunctionDecl() 3580 OldD = Old = cast<FunctionTemplateDecl>(Shadow->getTargetDecl()) in MergeFunctionDecl() 3585 OldD = Old = cast<FunctionDecl>(Shadow->getTargetDecl()); in MergeFunctionDecl() 17657 Diag(Shadow->getTargetDecl()->getLocation(), in ActOnTag()
|
H A D | SemaLookup.cpp | 3680 D = USD->getTargetDecl(); in LookupLiteralOperator() 3885 Underlying = USD->getTargetDecl(); in ArgumentDependentLookup()
|
H A D | SemaCodeComplete.cpp | 1123 CodeCompletionResult Result(Using->getTargetDecl(), in MaybeAddResult() 1124 getBasePriority(Using->getTargetDecl()), in MaybeAddResult() 1361 CodeCompletionResult Result(Using->getTargetDecl(), in AddResult() 1362 getBasePriority(Using->getTargetDecl()), in AddResult()
|
/llvm-project/clang/unittests/AST/ |
H A D | TemplateNameTest.cpp | 75 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST() 108 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
|
H A D | ASTImporterTest.cpp | 8431 EXPECT_EQ(ShadowBA->getTargetDecl(), ConstrA); in TEST_P() 8437 EXPECT_EQ(ShadowCA->getTargetDecl(), ConstrA); in TEST_P() 8578 EXPECT_EQ(ShadowD2V1A->getTargetDecl(), ConstrA); in TEST_P() 8584 EXPECT_EQ(ShadowD2V1B->getTargetDecl(), ConstrB); 8590 EXPECT_EQ(ShadowD2V2A->getTargetDecl(), ConstrA); in TEST_P() 8596 EXPECT_EQ(ShadowD2V2B->getTargetDecl(), ConstrB); in TEST_P()
|
/llvm-project/clang/lib/AST/ |
H A D | TemplateName.cpp | 214 return TemplateName(USD->getTargetDecl()); in getAsUsingShadowDecl()
|
H A D | TextNodeDumper.cpp | 1264 AddChild("target", [=] { Visit(USD->getTargetDecl()); }); in VisitIfStmt() 2759 dumpBareDeclRef(D->getTargetDecl()); in VisitObjCCategoryDecl() 2769 dumpBareDeclRef(D->getTargetDecl());
|
H A D | JSONNodeDumper.cpp | 919 JOS.attribute("target", createBareDeclRef(USD->getTargetDecl()));
|
H A D | Decl.cpp | 1940 ND = UD->getTargetDecl(); in getUnderlyingDeclImpl() 1957 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in isCXXInstanceMember()
|
/llvm-project/clang/unittests/Tooling/ |
H A D | LookupTest.cpp | 217 auto *TD = Type.getFoundDecl()->getTargetDecl(); in TEST()
|
/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRLocFinder.cpp | 274 Decl = UsingShadow->getTargetDecl(); in VisitDeclRefExpr() 345 if (isInUSRSet(UsingShadow->getTargetDecl())) { in VisitUsingDecl()
|
/llvm-project/clang/include/clang/Sema/ |
H A D | DelayedDiagnostic.h | 80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() function
|
/llvm-project/clang-tools-extra/include-cleaner/lib/ |
H A D | WalkAST.cpp | 224 auto *TD = Shadow->getTargetDecl(); in VisitUsingDecl()
|
H A D | FindHeaders.cpp | 122 ND = USD->getTargetDecl(); in headerForAmbiguousStdSymbol()
|
/llvm-project/clang-tools-extra/clang-change-namespace/ |
H A D | ChangeNamespace.cpp | 849 const auto *TargetDecl = UsingShadow->getTargetDecl(); in replaceQualifiedSymbolInDeclContext() 934 UsingDeclaration->shadow_begin()->getTargetDecl(); in fixUsingShadowDecl()
|
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | QualityTests.cpp | 151 CodeCompletionResult Result(Shadow->getTargetDecl(), 42); in TEST()
|
/llvm-project/clang-tools-extra/clang-tidy/utils/ |
H A D | RenamerClangTidyCheck.cpp | 258 Check->addUsage(Shadow->getTargetDecl(), in VisitUsingDecl()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | FindTarget.cpp | 219 D = USD->getTargetDecl(); in add()
|
H A D | SemanticHighlighting.cpp | 102 if (auto *Target = USD->getTargetDecl()) in kindForDecl()
|
/llvm-project/clang-tools-extra/clangd/refactor/ |
H A D | Rename.cpp | 138 if (const auto *TargetDecl = UD->getTargetDecl()) in canonicalRenameDecl()
|
/llvm-project/clang/include/clang/AST/ |
H A D | DeclCXX.h | 3446 NamedDecl *getTargetDecl() const { return Underlying; } 3754 : getTargetDecl()) in setEnumType() 3384 NamedDecl *getTargetDecl() const { return Underlying; } getTargetDecl() function
|