Home
last modified time | relevance | path

Searched refs:UsingDecl (Results 1 – 25 of 32) sorted by relevance

12

/external/clang/test/Modules/
Dusing-decl.cpp9 namespace UsingDecl { namespace
12 int k = UsingDecl::merged;
60 UsingDecl::using_decl_type x = UsingDecl::using_decl_var;
61 UsingDecl::inner y = x;
Dno-linkage.cpp9 int UsingDecl; // expected-note {{candidate}} variable
34 use(UsingDecl); in use_things()
49 use(UsingDecl); // expected-error {{ambiguous}} in use_things_again()
/external/clang/test/Modules/Inputs/no-linkage/
Ddecls.h1 namespace RealNS { int UsingDecl; } variable
5 using RealNS::UsingDecl;
/external/clang/test/Modules/Inputs/
Dusing-decl-b.h1 namespace UsingDecl {
8 namespace UsingDecl {
Dusing-decl-a.h5 namespace UsingDecl {
/external/clang/lib/AST/
DDeclCXX.cpp2072 UsingDecl *UsingShadowDecl::getUsingDecl() const { in getUsingDecl()
2077 return cast<UsingDecl>(Shadow->UsingOrNextShadow); in getUsingDecl()
2080 void UsingDecl::anchor() { } in anchor()
2082 void UsingDecl::addShadowDecl(UsingShadowDecl *S) { in addShadowDecl()
2092 void UsingDecl::removeShadowDecl(UsingShadowDecl *S) { in removeShadowDecl()
2113 UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation UL, in Create()
2117 return new (C, DC) UsingDecl(DC, UL, QualifierLoc, NameInfo, HasTypename); in Create()
2120 UsingDecl *UsingDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2121 return new (C, ID) UsingDecl(nullptr, SourceLocation(), in CreateDeserialized()
2126 SourceRange UsingDecl::getSourceRange() const { in getSourceRange()
DDeclPrinter.cpp92 void VisitUsingDecl(UsingDecl *D);
1320 void DeclPrinter::VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
DASTDumper.cpp460 void VisitUsingDecl(const UsingDecl *D);
1386 void ASTDumper::VisitUsingDecl(const UsingDecl *D) { in VisitUsingDecl()
DDecl.cpp1544 if (auto *UD = dyn_cast<UsingDecl>(this)) { in declarationReplaces()
1548 cast<UsingDecl>(OldD)->getQualifier()); in declarationReplaces()
/external/clang/include/clang/AST/
DDeclCXX.h44 class UsingDecl; variable
2778 friend class UsingDecl; variable
2781 UsingDecl *Using, NamedDecl *Target) in UsingShadowDecl()
2805 SourceLocation Loc, UsingDecl *Using, in Create()
2840 UsingDecl *getUsingDecl() const;
2861 class UsingDecl : public NamedDecl, public Mergeable<UsingDecl> {
2881 UsingDecl(DeclContext *DC, SourceLocation UL, in UsingDecl() function
2975 static UsingDecl *Create(ASTContext &C, DeclContext *DC,
2981 static UsingDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2986 UsingDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
[all …]
DASTContext.h68 class UsingDecl; variable
369 llvm::DenseMap<UsingDecl *, NamedDecl *> InstantiatedFromUsingDecl;
795 NamedDecl *getInstantiatedFromUsingDecl(UsingDecl *Inst);
799 void setInstantiatedFromUsingDecl(UsingDecl *Inst, NamedDecl *Pattern);
/external/clang/unittests/AST/
DSourceLocationTest.cpp290 TEST(UsingDecl, SourceRange) { in TEST() argument
291 RangeVerifier<UsingDecl> Verifier; in TEST()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp2276 Decl *TemplateDeclInstantiator::VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
2304 UsingDecl *NewUD = UsingDecl::Create(SemaRef.Context, Owner, in VisitUsingDecl()
2399 SemaRef.Context.setInstantiatedFromUsingDecl(cast<UsingDecl>(UD), D); in VisitUnresolvedUsingTypenameDecl()
2423 SemaRef.Context.setInstantiatedFromUsingDecl(cast<UsingDecl>(UD), D); in VisitUnresolvedUsingValueDecl()
4261 static bool isInstantiationOf(UsingDecl *Pattern, in isInstantiationOf()
4262 UsingDecl *Instance, in isInstantiationOf()
4268 UsingDecl *Instance, in isInstantiationOf()
4274 UsingDecl *Instance, in isInstantiationOf()
4300 if (UsingDecl *UD = dyn_cast<UsingDecl>(Other)) { in isInstantiationOf()
4307 if (UsingDecl *UD = dyn_cast<UsingDecl>(Other)) { in isInstantiationOf()
[all …]
DTreeTransform.h9376 if (isa<UsingDecl>(InstD)) { in TransformUnresolvedLookupExpr()
9377 UsingDecl *UD = cast<UsingDecl>(InstD); in TransformUnresolvedLookupExpr()
10232 if (isa<UsingDecl>(InstD)) { in TransformUnresolvedMemberExpr()
10233 UsingDecl *UD = cast<UsingDecl>(InstD); in TransformUnresolvedMemberExpr()
11291 if (isa<UsingDecl>(D)) { in RebuildUnresolvedUsingType()
11292 UsingDecl *Using = cast<UsingDecl>(D); in RebuildUnresolvedUsingType()
DSemaDeclCXX.cpp7727 bool Sema::CheckUsingShadowDecl(UsingDecl *Using, NamedDecl *Orig, in CheckUsingShadowDecl()
7858 UsingDecl *UD, in BuildUsingShadowDecl()
8110 UsingDecl *UD = in BuildUsingDeclaration()
8111 UsingDecl::Create(Context, CurContext, UsingLoc, QualifierLoc, NameInfo, in BuildUsingDeclaration()
8222 UsingDecl *UD = BuildValid(); in BuildUsingDeclaration()
8245 bool Sema::CheckInheritingConstructorUsingDecl(UsingDecl *UD) { in CheckInheritingConstructorUsingDecl()
8297 if (UsingDecl *UD = dyn_cast<UsingDecl>(D)) { in CheckUsingDeclRedeclaration()
/external/clang/lib/CodeGen/
DCGDebugInfo.h40 class UsingDecl; variable
354 void EmitUsingDecl(const UsingDecl &UD);
DCGDecl.cpp105 DI->EmitUsingDecl(cast<UsingDecl>(D)); in EmitDecl()
/external/clang/tools/libclang/
DCursorVisitor.h238 bool VisitUsingDecl(UsingDecl *D);
DIndexDecl.cpp256 bool VisitUsingDecl(const UsingDecl *D) { in VisitUsingDecl()
DCIndex.cpp1198 bool CursorVisitor::VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
5107 if (const UsingDecl *Using = dyn_cast<UsingDecl>(D)) in clang_getCursorReferenced()
5338 return MakeCursorOverloadedDeclRef(cast<UsingDecl>(D), in clang_getCursorDefinition()
5461 if (const UsingDecl *Using = dyn_cast<UsingDecl>(D)) in clang_getNumOverloadedDecls()
5484 if (const UsingDecl *Using = dyn_cast<UsingDecl>(D)) { in clang_getOverloadedDecl()
5486 UsingDecl::shadow_iterator Pos = Using->shadow_begin(); in clang_getOverloadedDecl()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1002 const internal::VariadicDynCastAllOfMatcher<Decl, UsingDecl> usingDecl;
2480 if (const UsingShadowDecl *UsingDecl = dyn_cast<UsingShadowDecl>(FoundDecl)) in AST_MATCHER_P() local
2481 return InnerMatcher.matches(*UsingDecl, Finder, Builder); in AST_MATCHER_P()
3648 AST_MATCHER_P(UsingDecl, hasAnyUsingShadowDecl, in AST_MATCHER_P() argument
/external/clang/lib/Index/
DUSRGeneration.cpp99 void VisitUsingDecl(const UsingDecl *D) { in VisitUsingDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp301 void VisitUsingDecl(UsingDecl *D);
1345 void ASTDeclReader::VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
2642 if (auto *UX = dyn_cast<UsingDecl>(X)) { in isSameEntity()
2643 auto *UY = cast<UsingDecl>(Y); in isSameEntity()
3147 D = UsingDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
DASTWriterDecl.cpp100 void VisitUsingDecl(UsingDecl *D);
1085 void ASTDeclWriter::VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
/external/clang/include/clang/Sema/
DSema.h179 class UsingDecl; variable
4101 UsingDirectiveDecl * &UsingDecl);
4142 bool CheckUsingShadowDecl(UsingDecl *UD, NamedDecl *Target,
4145 UsingShadowDecl *BuildUsingShadowDecl(Scope *S, UsingDecl *UD,
4168 bool CheckInheritingConstructorUsingDecl(UsingDecl *UD);

12