Home
last modified time | relevance | path

Searched refs:UsingShadowDecl (Results 1 – 25 of 52) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateName.cpp80 TemplateName::TemplateName(UsingShadowDecl *Using) : Storage(Using) {} in TemplateName()
86 if (isa<UsingShadowDecl>(ND)) in getKind()
110 if (UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(TemplateOrUsing)) in getAsTemplateDecl()
123 if (UsingShadowDecl *USD = getAsUsingShadowDecl()) in getAsTemplateDecl()
171 UsingShadowDecl *TemplateName::getAsUsingShadowDecl() const { in getAsUsingShadowDecl()
173 if (UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) in getAsUsingShadowDecl()
H A DDeclCXX.cpp1340 if (auto *Shadow = dyn_cast<UsingShadowDecl>(D)) { in addedMember()
2985 void UsingShadowDecl::anchor() {} in anchor()
2987 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, in UsingShadowDecl() function in UsingShadowDecl
2993 assert(!isa<UsingShadowDecl>(Target)); in UsingShadowDecl()
2999 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, EmptyShell Empty) in UsingShadowDecl() function in UsingShadowDecl
3003 UsingShadowDecl *
3008 BaseUsingDecl *UsingShadowDecl::getIntroducer() const { in getIntroducer()
3009 const UsingShadowDecl *Shadow = this; in getIntroducer()
3037 void BaseUsingDecl::addShadowDecl(UsingShadowDecl *S) { in addShadowDecl()
3054 dyn_cast<UsingShadowDecl>(S->UsingOrNextShadow)); in removeShadowDecl()
[all …]
H A DQualTypeNames.cpp84 if (UsingShadowDecl *USD = TName.getAsUsingShadowDecl()) in getFullyQualifiedTemplateName()
H A DDeclPrinter.cpp102 void VisitUsingShadowDecl(UsingShadowDecl *D);
1643 void DeclPrinter::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h3220 class UsingShadowDecl : public NamedDecl, public Redeclarable<UsingShadowDecl> {
3238 UsingShadowDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl()
3275 UsingShadowDecl *getCanonicalDecl() override { in getCanonicalDecl()
3278 const UsingShadowDecl *getCanonicalDecl() const { in getCanonicalDecl()
3304 UsingShadowDecl *getNextUsingShadowDecl() const { in getNextUsingShadowDecl()
3347 UsingShadowDecl *Current = nullptr;
3350 using value_type = UsingShadowDecl *;
3351 using reference = UsingShadowDecl *;
3352 using pointer = UsingShadowDecl *;
3399 void addShadowDecl(UsingShadowDecl *S);
[all …]
H A DTemplateName.h43 class UsingShadowDecl; variable
248 explicit TemplateName(UsingShadowDecl *Using);
303 UsingShadowDecl *getAsUsingShadowDecl() const;
H A DASTContext.h135 class UsingShadowDecl; variable
567 llvm::DenseMap<UsingShadowDecl*, UsingShadowDecl*>
997 UsingShadowDecl *getInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst);
998 void setInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst,
999 UsingShadowDecl *Pattern);
1593 QualType getUsingType(const UsingShadowDecl *Found,
H A DTextNodeDumper.h363 void VisitUsingShadowDecl(const UsingShadowDecl *D);
H A DJSONNodeDumper.h240 void VisitUsingShadowDecl(const UsingShadowDecl *USD);
H A DASTNodeTraverser.h635 void VisitUsingShadowDecl(const UsingShadowDecl *D) { in VisitUsingShadowDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp125 Result.Nodes.getNodeAs<UsingShadowDecl>("usedShadow")) { in check()
150 if (const auto *USD = dyn_cast<UsingShadowDecl>(ND)) in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindTarget.cpp188 for (const UsingShadowDecl *S : UD->shadows()) in add()
209 } else if (const UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) { in add()
263 if (auto *USD = llvm::dyn_cast<UsingShadowDecl>(DRE->getFoundDecl())) in add()
270 llvm::dyn_cast<UsingShadowDecl>(ME->getFoundDecl().getDecl())) in add()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h50 class UsingShadowDecl; variable
862 const UsingShadowDecl *ShadowDecl = nullptr;
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp681 if (UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(D)) in maybeAddCUDAHostDeviceAttrs()
H A DSemaOverload.cpp1036 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
3539 if (isa<UsingShadowDecl>(D)) in IsUserDefinedConversion()
4632 if (isa<UsingShadowDecl>(D)) in FindConversionForRefInit()
6054 if (isa<UsingShadowDecl>(D)) in collectViableConversionCandidates()
6903 if (isa<UsingShadowDecl>(Decl)) in AddMethodCandidate()
8123 if (isa<UsingShadowDecl>(D)) in AddTypesConvertedFrom()
8195 if (isa<UsingShadowDecl>(D)) in CollectVRQualifiers()
12772 if (isa<UsingShadowDecl>(Callee)) in AddOverloadedCallCandidate()
12831 assert(isa<UsingShadowDecl>(*I) || in AddOverloadedCallCandidates()
14499 if (isa<UsingShadowDecl>(Func)) in BuildCallToMemberFunction()
[all …]
H A DSemaTemplateInstantiateDecl.cpp3139 UsingShadowDecl *PrevDecl = nullptr; in VisitBaseUsingDecls()
3144 if (UsingShadowDecl *OldPrev = getPreviousDeclForInstantiation(Shadow)) in VisitBaseUsingDecls()
3145 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( in VisitBaseUsingDecls()
3148 UsingShadowDecl *InstShadow = SemaRef.BuildUsingShadowDecl( in VisitBaseUsingDecls()
3257 Decl *TemplateDeclInstantiator::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
5841 static bool isInstantiationOf(UsingShadowDecl *Pattern, in isInstantiationOf()
5842 UsingShadowDecl *Instance, in isInstantiationOf()
5942 if (auto *Shadow = dyn_cast<UsingShadowDecl>(Other)) in isInstantiationOf()
5943 return isInstantiationOf(cast<UsingShadowDecl>(D), Shadow, Ctx); in isInstantiationOf()
6258 if (isa<UsingShadowDecl>(D)) { in FindInstantiatedDecl()
H A DSemaLookup.cpp371 if (Kind == Sema::LookupUsingDeclName && isa<UsingShadowDecl>(D) && in isPreferredLookupResult()
372 !isa<UsingShadowDecl>(Existing)) in isPreferredLookupResult()
3652 if (UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) in LookupLiteralOperator()
3857 if (auto *USD = dyn_cast<UsingShadowDecl>(D)) in ArgumentDependentLookup()
4035 if (isa<UsingShadowDecl>(ND) && isa<UsingDecl>(D) && in checkHidden()
4036 cast<UsingShadowDecl>(ND)->getIntroducer() == D) in checkHidden()
H A DSemaAccess.cpp1310 if (UsingShadowDecl *Shadow = in IsMicrosoftUsingDeclarationAccessBug()
1311 dyn_cast<UsingShadowDecl>(Entity.getTargetDecl())) in IsMicrosoftUsingDeclarationAccessBug()
H A DSemaDeclCXX.cpp10004 if (UsingShadowDecl *shad = dyn_cast<UsingShadowDecl>(*I)) in FindHiddenVirtualMethods()
11885 UsingShadowDecl *&PrevShadow) { in CheckUsingShadowDecl()
11939 if (isa<UsingShadowDecl>(Target)) in CheckUsingShadowDecl()
11940 Target = cast<UsingShadowDecl>(Target)->getTargetDecl(); in CheckUsingShadowDecl()
11972 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(*I)) in CheckUsingShadowDecl()
12071 if (isa<UsingShadowDecl>(Target)) { in BuildUsingShadowDecl()
12072 Target = cast<UsingShadowDecl>(Target)->getTargetDecl(); in BuildUsingShadowDecl()
12080 UsingShadowDecl *Shadow; in BuildUsingShadowDecl()
12136 void Sema::HideUsingShadowDecl(Scope *S, UsingShadowDecl *Shadow) { in HideUsingShadowDecl()
12531 UsingShadowDecl *PrevDecl = nullptr; in BuildUsingDeclaration()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp7354 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7358 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7427 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7431 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7435 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7439 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7443 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7447 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7452 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
7457 FirstDeclMatcher<UsingShadowDecl>().match( in TEST_P()
[all …]
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4186 internal::Matcher<UsingShadowDecl>, Inner) { in AST_POLYMORPHIC_MATCHER_P() argument
4188 if (const UsingShadowDecl *UsingDecl = dyn_cast<UsingShadowDecl>(FoundDecl)) in AST_POLYMORPHIC_MATCHER_P()
6410 internal::Matcher<UsingShadowDecl>, InnerMatcher) { in AST_MATCHER_P() argument
6428 AST_MATCHER_P(UsingShadowDecl, hasTargetDecl, in AST_MATCHER_P() argument
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp272 if (auto *UsingShadow = llvm::dyn_cast<UsingShadowDecl>(Decl)) { in VisitDeclRefExpr()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp397 void VisitUsingShadowDecl(UsingShadowDecl *D);
1753 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingDecl()
1765 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingEnumDecl()
1780 void ASTDeclReader::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
1786 auto *Pattern = readDeclAs<UsingShadowDecl>(); in VisitUsingShadowDecl()
3613 D = UsingShadowDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DModularize.cpp618 isa<TypeAliasTemplateDecl>(ND) || isa<UsingShadowDecl>(ND) || in VisitNamedDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.h525 void EmitUsingShadowDecl(const UsingShadowDecl &USD);

123