Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DDeclCXX.h2835 class UsingShadowDecl : public NamedDecl, public Redeclarable<UsingShadowDecl> {
2846 typedef Redeclarable<UsingShadowDecl> redeclarable_base;
2847 UsingShadowDecl *getNextRedeclarationImpl() override { in getNextRedeclarationImpl()
2850 UsingShadowDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl()
2853 UsingShadowDecl *getMostRecentDeclImpl() override { in getMostRecentDeclImpl()
2858 UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, SourceLocation Loc,
2860 UsingShadowDecl(Kind K, ASTContext &C, EmptyShell);
2863 static UsingShadowDecl *Create(ASTContext &C, DeclContext *DC, in Create()
2866 return new (C, DC) UsingShadowDecl(UsingShadow, C, DC, Loc, Using, Target); in Create()
2869 static UsingShadowDecl *CreateDeserialized(ASTContext &C, unsigned ID);
[all …]
DASTContext.h71 class UsingShadowDecl; variable
380 llvm::DenseMap<UsingShadowDecl*, UsingShadowDecl*>
811 void setInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst,
812 UsingShadowDecl *Pattern);
813 UsingShadowDecl *getInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst);
/external/llvm-project/clang/include/clang/AST/
DDeclCXX.h3157 class UsingShadowDecl : public NamedDecl, public Redeclarable<UsingShadowDecl> {
3169 using redeclarable_base = Redeclarable<UsingShadowDecl>;
3171 UsingShadowDecl *getNextRedeclarationImpl() override { in getNextRedeclarationImpl()
3175 UsingShadowDecl *getPreviousDeclImpl() override { in getPreviousDeclImpl()
3179 UsingShadowDecl *getMostRecentDeclImpl() override { in getMostRecentDeclImpl()
3184 UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, SourceLocation Loc,
3186 UsingShadowDecl(Kind K, ASTContext &C, EmptyShell);
3192 static UsingShadowDecl *Create(ASTContext &C, DeclContext *DC, in Create()
3195 return new (C, DC) UsingShadowDecl(UsingShadow, C, DC, Loc, Using, Target); in Create()
3198 static UsingShadowDecl *CreateDeserialized(ASTContext &C, unsigned ID);
[all …]
DASTContext.h133 class UsingShadowDecl; variable
513 llvm::DenseMap<UsingShadowDecl*, UsingShadowDecl*>
869 void setInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst,
870 UsingShadowDecl *Pattern);
871 UsingShadowDecl *getInstantiatedFromUsingShadowDecl(UsingShadowDecl *Inst);
DTextNodeDumper.h355 void VisitUsingShadowDecl(const UsingShadowDecl *D);
DJSONNodeDumper.h237 void VisitUsingShadowDecl(const UsingShadowDecl *USD);
/external/clang/lib/AST/
DDeclCXX.cpp971 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(D)) { in addedMember()
2144 void UsingShadowDecl::anchor() { } in anchor()
2146 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, in UsingShadowDecl() function in UsingShadowDecl
2157 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, EmptyShell Empty) in UsingShadowDecl() function in UsingShadowDecl
2161 UsingShadowDecl *
2162 UsingShadowDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2163 return new (C, ID) UsingShadowDecl(UsingShadow, C, EmptyShell()); in CreateDeserialized()
2166 UsingDecl *UsingShadowDecl::getUsingDecl() const { in getUsingDecl()
2167 const UsingShadowDecl *Shadow = this; in getUsingDecl()
2168 while (const UsingShadowDecl *NextShadow = in getUsingDecl()
[all …]
DDeclPrinter.cpp93 void VisitUsingShadowDecl(UsingShadowDecl *D);
1366 void DeclPrinter::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
/external/llvm-project/clang/lib/AST/
DDeclCXX.cpp1360 if (auto *Shadow = dyn_cast<UsingShadowDecl>(D)) { in addedMember()
2964 void UsingShadowDecl::anchor() {} in anchor()
2966 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, DeclContext *DC, in UsingShadowDecl() function in UsingShadowDecl
2976 UsingShadowDecl::UsingShadowDecl(Kind K, ASTContext &C, EmptyShell Empty) in UsingShadowDecl() function in UsingShadowDecl
2980 UsingShadowDecl *
2981 UsingShadowDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2982 return new (C, ID) UsingShadowDecl(UsingShadow, C, EmptyShell()); in CreateDeserialized()
2985 UsingDecl *UsingShadowDecl::getUsingDecl() const { in getUsingDecl()
2986 const UsingShadowDecl *Shadow = this; in getUsingDecl()
2988 dyn_cast<UsingShadowDecl>(Shadow->UsingOrNextShadow)) in getUsingDecl()
[all …]
/external/clang/lib/Sema/
DSemaCUDA.cpp455 if (UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(D)) in maybeAddCUDAHostDeviceAttrs()
DSemaTemplateInstantiateDecl.cpp2434 UsingShadowDecl *PrevDecl = nullptr; in VisitUsingDecl()
2438 } else if (UsingShadowDecl *OldPrev = in VisitUsingDecl()
2440 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl()
2444 UsingShadowDecl *InstShadow = in VisitUsingDecl()
2456 Decl *TemplateDeclInstantiator::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
4464 static bool isInstantiationOf(UsingShadowDecl *Pattern, in isInstantiationOf()
4465 UsingShadowDecl *Instance, in isInstantiationOf()
4560 if (UsingShadowDecl *Shadow = dyn_cast<UsingShadowDecl>(Other)) in isInstantiationOf()
4561 return isInstantiationOf(cast<UsingShadowDecl>(D), Shadow, Ctx); in isInstantiationOf()
4818 if (isa<UsingShadowDecl>(D)) { in FindInstantiatedDecl()
DSemaOverload.cpp934 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
941 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
961 HideUsingShadowDecl(S, cast<UsingShadowDecl>(*I)); in CheckOverload()
3227 if (isa<UsingShadowDecl>(D)) in IsUserDefinedConversion()
3228 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in IsUserDefinedConversion()
4173 if (isa<UsingShadowDecl>(D)) in FindConversionForRefInit()
4174 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in FindConversionForRefInit()
5437 if (isa<UsingShadowDecl>(D)) in collectViableConversionCandidates()
5438 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in collectViableConversionCandidates()
6090 if (isa<UsingShadowDecl>(Decl)) in AddMethodCandidate()
[all …]
DSemaLookup.cpp367 if (Kind == Sema::LookupUsingDeclName && isa<UsingShadowDecl>(D) && in isPreferredLookupResult()
368 !isa<UsingShadowDecl>(Existing)) in isPreferredLookupResult()
3129 if (UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) in LookupLiteralOperator()
3309 if (isa<UsingShadowDecl>(D)) in ArgumentDependentLookup()
3310 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in ArgumentDependentLookup()
/external/llvm-project/clang-tools-extra/clangd/
DFindTarget.cpp374 for (const UsingShadowDecl *S : UD->shadows()) in add()
389 } else if (const UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) { in add()
443 if (auto *USD = llvm::dyn_cast<UsingShadowDecl>(DRE->getFoundDecl())) in add()
450 llvm::dyn_cast<UsingShadowDecl>(ME->getFoundDecl().getDecl())) in add()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DUnusedUsingDeclsCheck.cpp160 if (const auto *USD = dyn_cast<UsingShadowDecl>(ND)) in check()
/external/llvm-project/clang/include/clang/Sema/
DCodeCompleteConsumer.h50 class UsingShadowDecl; variable
856 const UsingShadowDecl *ShadowDecl = nullptr;
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp605 if (UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(D)) in maybeAddCUDAHostDeviceAttrs()
DSemaOverload.cpp1038 if (isa<UsingShadowDecl>(OldD)) { in CheckOverload()
1045 OldD = cast<UsingShadowDecl>(OldD)->getTargetDecl(); in CheckOverload()
1065 HideUsingShadowDecl(S, cast<UsingShadowDecl>(*I)); in CheckOverload()
3519 if (isa<UsingShadowDecl>(D)) in IsUserDefinedConversion()
3520 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in IsUserDefinedConversion()
4621 if (isa<UsingShadowDecl>(D)) in FindConversionForRefInit()
4622 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in FindConversionForRefInit()
5993 if (isa<UsingShadowDecl>(D)) in collectViableConversionCandidates()
5994 D = cast<UsingShadowDecl>(D)->getTargetDecl(); in collectViableConversionCandidates()
6826 if (isa<UsingShadowDecl>(Decl)) in AddMethodCandidate()
[all …]
DSemaTemplateInstantiateDecl.cpp3067 UsingShadowDecl *PrevDecl = nullptr; in VisitUsingDecl()
3071 } else if (UsingShadowDecl *OldPrev = in VisitUsingDecl()
3073 PrevDecl = cast_or_null<UsingShadowDecl>(SemaRef.FindInstantiatedDecl( in VisitUsingDecl()
3077 UsingShadowDecl *InstShadow = in VisitUsingDecl()
3089 Decl *TemplateDeclInstantiator::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
5612 static bool isInstantiationOf(UsingShadowDecl *Pattern, in isInstantiationOf()
5613 UsingShadowDecl *Instance, in isInstantiationOf()
5713 if (auto *Shadow = dyn_cast<UsingShadowDecl>(Other)) in isInstantiationOf()
5714 return isInstantiationOf(cast<UsingShadowDecl>(D), Shadow, Ctx); in isInstantiationOf()
6027 if (isa<UsingShadowDecl>(D)) { in FindInstantiatedDecl()
DSemaLookup.cpp370 if (Kind == Sema::LookupUsingDeclName && isa<UsingShadowDecl>(D) && in isPreferredLookupResult()
371 !isa<UsingShadowDecl>(Existing)) in isPreferredLookupResult()
3354 if (UsingShadowDecl *USD = dyn_cast<UsingShadowDecl>(D)) in LookupLiteralOperator()
3546 if (auto *USD = dyn_cast<UsingShadowDecl>(D)) in ArgumentDependentLookup()
3685 if (isa<UsingShadowDecl>(ND) && isa<UsingDecl>(D) && in checkHidden()
3686 cast<UsingShadowDecl>(ND)->getUsingDecl() == D) in checkHidden()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h2774 internal::Matcher<UsingShadowDecl>, InnerMatcher) { in AST_MATCHER_P() argument
2776 if (const UsingShadowDecl *UsingDecl = dyn_cast<UsingShadowDecl>(FoundDecl)) in AST_MATCHER_P()
4231 internal::Matcher<UsingShadowDecl>, InnerMatcher) { in AST_MATCHER_P() argument
4248 AST_MATCHER_P(UsingShadowDecl, hasTargetDecl, in AST_MATCHER_P() argument
/external/clang/lib/Serialization/
DASTReaderDecl.cpp326 void VisitUsingShadowDecl(UsingShadowDecl *D);
1407 D->FirstUsingShadow.setPointer(ReadDeclAs<UsingShadowDecl>(Record, Idx)); in VisitUsingDecl()
1414 void ASTDeclReader::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
1419 UsingShadowDecl *Pattern = ReadDeclAs<UsingShadowDecl>(Record, Idx); in VisitUsingShadowDecl()
2750 if (UsingShadowDecl *USX = dyn_cast<UsingShadowDecl>(X)) { in isSameEntity()
2751 UsingShadowDecl *USY = cast<UsingShadowDecl>(Y); in isSameEntity()
3262 D = UsingShadowDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h3869 internal::Matcher<UsingShadowDecl>, InnerMatcher) { in AST_MATCHER_P() argument
3871 if (const UsingShadowDecl *UsingDecl = dyn_cast<UsingShadowDecl>(FoundDecl)) in AST_MATCHER_P()
5913 internal::Matcher<UsingShadowDecl>, InnerMatcher) { in AST_MATCHER_P() argument
5931 AST_MATCHER_P(UsingShadowDecl, hasTargetDecl, in AST_MATCHER_P() argument
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp254 if (auto *UsingShadow = llvm::dyn_cast<UsingShadowDecl>(Decl)) { in VisitDeclRefExpr()
/external/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp393 void VisitUsingShadowDecl(UsingShadowDecl *D);
1647 D->FirstUsingShadow.setPointer(readDeclAs<UsingShadowDecl>()); in VisitUsingDecl()
1663 void ASTDeclReader::VisitUsingShadowDecl(UsingShadowDecl *D) { in VisitUsingShadowDecl()
1669 auto *Pattern = readDeclAs<UsingShadowDecl>(); in VisitUsingShadowDecl()
3226 if (const auto *USX = dyn_cast<UsingShadowDecl>(X)) { in isSameEntity()
3227 const auto *USY = cast<UsingShadowDecl>(Y); in isSameEntity()
3837 D = UsingShadowDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()

123