Home
last modified time | relevance | path

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

12

/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp113 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 DSemaAccess.cpp186 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 DSemaCUDA.cpp771 D = Using->getTargetDecl(); in maybeAddHostDeviceAttrs()
H A DSemaOverload.cpp1214 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 DSemaDecl.cpp539 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 DSemaLookup.cpp3680 D = USD->getTargetDecl(); in LookupLiteralOperator()
3885 Underlying = USD->getTargetDecl(); in ArgumentDependentLookup()
H A DSemaCodeComplete.cpp1123 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 DTemplateNameTest.cpp75 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
108 EXPECT_EQ(USD->getTargetDecl(), TN.getAsTemplateDecl()); in TEST()
H A DASTImporterTest.cpp8431 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 DTemplateName.cpp214 return TemplateName(USD->getTargetDecl()); in getAsUsingShadowDecl()
H A DTextNodeDumper.cpp1264 AddChild("target", [=] { Visit(USD->getTargetDecl()); }); in VisitIfStmt()
2759 dumpBareDeclRef(D->getTargetDecl()); in VisitObjCCategoryDecl()
2769 dumpBareDeclRef(D->getTargetDecl());
H A DJSONNodeDumper.cpp919 JOS.attribute("target", createBareDeclRef(USD->getTargetDecl()));
H A DDecl.cpp1940 ND = UD->getTargetDecl(); in getUnderlyingDeclImpl()
1957 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in isCXXInstanceMember()
/llvm-project/clang/unittests/Tooling/
H A DLookupTest.cpp217 auto *TD = Type.getFoundDecl()->getTargetDecl(); in TEST()
/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp274 Decl = UsingShadow->getTargetDecl(); in VisitDeclRefExpr()
345 if (isInUSRSet(UsingShadow->getTargetDecl())) { in VisitUsingDecl()
/llvm-project/clang/include/clang/Sema/
H A DDelayedDiagnostic.h80 NamedDecl *getTargetDecl() const { return Target; } in getTargetDecl() function
/llvm-project/clang-tools-extra/include-cleaner/lib/
H A DWalkAST.cpp224 auto *TD = Shadow->getTargetDecl(); in VisitUsingDecl()
H A DFindHeaders.cpp122 ND = USD->getTargetDecl(); in headerForAmbiguousStdSymbol()
/llvm-project/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp849 const auto *TargetDecl = UsingShadow->getTargetDecl(); in replaceQualifiedSymbolInDeclContext()
934 UsingDeclaration->shadow_begin()->getTargetDecl(); in fixUsingShadowDecl()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp151 CodeCompletionResult Result(Shadow->getTargetDecl(), 42); in TEST()
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp258 Check->addUsage(Shadow->getTargetDecl(), in VisitUsingDecl()
/llvm-project/clang-tools-extra/clangd/
H A DFindTarget.cpp219 D = USD->getTargetDecl(); in add()
H A DSemanticHighlighting.cpp102 if (auto *Target = USD->getTargetDecl()) in kindForDecl()
/llvm-project/clang-tools-extra/clangd/refactor/
H A DRename.cpp138 if (const auto *TargetDecl = UD->getTargetDecl()) in canonicalRenameDecl()
/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h3446 NamedDecl *getTargetDecl() const { return Underlying; }
3754 : getTargetDecl()) in setEnumType()
3384 NamedDecl *getTargetDecl() const { return Underlying; } getTargetDecl() function

12