/external/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 29 class NamespaceDecl; variable 122 NamespaceDecl *NS); 170 NamespaceDecl *getAsNamespace() const; 395 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
|
D | Decl.h | 71 NamespaceDecl *AnonymousNamespace; 80 NamespaceDecl *getAnonymousNamespace() const { return AnonymousNamespace; } in getAnonymousNamespace() 81 void setAnonymousNamespace(NamespaceDecl *D) { AnonymousNamespace = D; } in setAnonymousNamespace() 343 class NamespaceDecl : public NamedDecl, public DeclContext { 375 llvm::PointerIntPair<NamespaceDecl *, 1, bool> OrigOrAnonNamespace; 377 NamespaceDecl(DeclContext *DC, SourceLocation StartLoc, in NamespaceDecl() function 384 static NamespaceDecl *Create(ASTContext &C, DeclContext *DC, 413 NamespaceDecl *getNextNamespace(); 414 const NamespaceDecl *getNextNamespace() const { in getNextNamespace() 415 return const_cast<NamespaceDecl *>(this)->getNextNamespace(); in getNextNamespace() [all …]
|
D | DeclCXX.h | 2090 NamespaceDecl *getNominatedNamespace(); 2092 const NamespaceDecl *getNominatedNamespace() const { 2174 NamespaceDecl *getNamespace() { 2178 return cast<NamespaceDecl>(Namespace); 2181 const NamespaceDecl *getNamespace() const {
|
/external/clang/test/SemaCXX/ |
D | member-expr.cpp | 47 struct NamespaceDecl; 53 struct NamespaceDecl : NamedDecl { struct
|
/external/clang/lib/AST/ |
D | NestedNameSpecifier.cpp | 58 NestedNameSpecifier *Prefix, NamespaceDecl *NS) { in Create() 123 return isa<NamespaceDecl>(static_cast<NamedDecl *>(Specifier))? Namespace in getKind() 138 NamespaceDecl *NestedNameSpecifier::getAsNamespace() const { in getAsNamespace() 140 return dyn_cast<NamespaceDecl>(static_cast<NamedDecl *>(Specifier)); in getAsNamespace() 533 NamespaceDecl *Namespace, in Extend()
|
D | DeclBase.cpp | 196 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace() 693 cast<NamespaceDecl>(this)->isInline(); in isInlineNamespace() 760 return static_cast<NamespaceDecl*>(this)->getOriginalNamespace(); in getPrimaryContext() 807 return static_cast<NamespaceDecl*>(this)->getNextNamespace(); in getNextContext() 1121 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(O); in InEnclosingNamespaceSetOf()
|
D | Decl.cpp | 297 if (!isa<NamespaceDecl>(DC)) continue; in getLVForNamespaceScopeDecl() 299 = cast<NamespaceDecl>(DC)->getExplicitVisibility()) { in getLVForNamespaceScopeDecl() 469 } else if (isa<NamespaceDecl>(D) && !D->isInAnonymousNamespace()) { in getLVForNamespaceScopeDecl() 844 } else if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(*I)) { in getQualifiedNameAsString() 1583 if (const NamespaceDecl *Namespace = cast<NamespaceDecl>(DC)) { in isGlobal() 2487 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create() 2490 return new (C) NamespaceDecl(DC, StartLoc, IdLoc, Id); in Create() 2493 NamespaceDecl *NamespaceDecl::getNextNamespace() { in getNextNamespace() 2494 return dyn_cast_or_null<NamespaceDecl>( in getNextNamespace()
|
D | DeclCXX.cpp | 1594 if (NamespaceDecl *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create() 1600 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace() 1604 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace() 1614 if (NamespaceDecl *NS = dyn_cast_or_null<NamespaceDecl>(Namespace)) in Create()
|
D | ItaniumMangle.cpp | 468 static bool isStd(const NamespaceDecl *NS) { in isStd() 482 return isStd(cast<NamespaceDecl>(DC)); in isStdNamespace() 919 } else if (NamespaceDecl *nspace = in mangleUnresolvedPrefix() 920 dyn_cast<NamespaceDecl>(firstQualifierLookup)) { in mangleUnresolvedPrefix() 1009 if (const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(ND)) { in mangleUnqualifiedName() 3088 if (const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(ND)) { in mangleStandardSubstitution()
|
D | DeclPrinter.cpp | 59 void VisitNamespaceDecl(NamespaceDecl *D); 273 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext() 623 void DeclPrinter::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl()
|
D | ASTDiagnostic.cpp | 300 if (isa<NamespaceDecl>(ND)) in FormatASTNodeDiagnosticArgument()
|
D | ASTImporter.cpp | 100 Decl *VisitNamespaceDecl(NamespaceDecl *D); 1954 Decl *ASTNodeImporter::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl() 1962 NamespaceDecl *MergeWithNamespace = 0; in VisitNamespaceDecl() 1970 MergeWithNamespace = cast<NamespaceDecl>(DC)->getAnonymousNamespace(); in VisitNamespaceDecl() 1979 if (NamespaceDecl *FoundNS = dyn_cast<NamespaceDecl>(*Lookup.first)) { in VisitNamespaceDecl() 1996 NamespaceDecl *ToNamespace = MergeWithNamespace; in VisitNamespaceDecl() 1998 ToNamespace = NamespaceDecl::Create(Importer.getToContext(), DC, in VisitNamespaceDecl() 2010 cast<NamespaceDecl>(DC)->setAnonymousNamespace(ToNamespace); in VisitNamespaceDecl() 4114 if (NamespaceDecl *NS = in Import() 4115 cast<NamespaceDecl>(Import(FromNNS->getAsNamespace()))) { in Import()
|
/external/clang/include/clang/Sema/ |
D | ExternalSemaSource.h | 55 llvm::SmallVectorImpl<NamespaceDecl *> &Namespaces);
|
D | Template.h | 336 Decl *VisitNamespaceDecl(NamespaceDecl *D);
|
/external/clang/tools/libclang/ |
D | CIndexUSRs.cpp | 74 void VisitNamespaceDecl(NamespaceDecl *D); 157 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext())) in InAnonymousNamespace() 260 void USRGenerator::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl() 812 isa<VarDecl>(ND) || isa<NamespaceDecl>(ND)) in getDeclCursorUSR()
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 266 if (isa<NamespaceDecl>(SD) || isa<NamespaceAliasDecl>(SD)) in isAcceptableNestedNameSpecifier() 362 return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND); in isNonTypeNestedNameSpecifier() 555 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) { in BuildCXXNestedNameSpecifier()
|
D | SemaLookup.cpp | 1191 llvm::SmallVector<NamespaceDecl*, 8> Queue; in LookupQualifiedNameInUsingDirectives() 1196 NamespaceDecl *ND = (*I)->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives() 1212 NamespaceDecl *ND = Queue.back(); in LookupQualifiedNameInUsingDirectives() 1245 NamespaceDecl *Nom = (*I)->getNominatedNamespace(); in LookupQualifiedNameInUsingDirectives() 3173 void AddNamespace(NamespaceDecl *ND); 3190 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in BuildContextChain() 3216 void NamespaceSpecifierSet::AddNamespace(NamespaceDecl *ND) { in AddNamespace() 3234 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C); in AddNamespace() 3627 llvm::SmallVector<NamespaceDecl *, 4> ExternalKnownNamespaces; in CorrectTypo() 3634 for (llvm::DenseMap<NamespaceDecl*, bool>::iterator in CorrectTypo()
|
D | SemaExceptionSpec.cpp | 398 if (NamespaceDecl* NS = dyn_cast<NamespaceDecl>(DC)) { in CheckEquivalentExceptionSpec()
|
D | SemaDeclCXX.cpp | 4620 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, in ActOnStartNamespaceDef() 4656 if (NamespaceDecl *OrigNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl)) { in ActOnStartNamespaceDef() 4697 if (NamespaceDecl *StdNS = getStdNamespace()) { in ActOnStartNamespaceDef() 4723 NamespaceDecl *PrevDecl; in ActOnStartNamespaceDef() 4729 NamespaceDecl *ND = cast<NamespaceDecl>(Parent); in ActOnStartNamespaceDef() 4795 static inline NamespaceDecl *getNamespaceDecl(NamedDecl *D) { in getNamespaceDecl() 4798 return dyn_cast_or_null<NamespaceDecl>(D); in getNamespaceDecl() 4804 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl); in ActOnFinishNamespaceDef() 4817 NamespaceDecl *Sema::getStdNamespace() const { in getStdNamespace() 4818 return cast_or_null<NamespaceDecl>( in getStdNamespace() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 112 TemplateDeclInstantiator::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl() 793 cast<NamespaceDecl>(DC)->getIdentifier() && in VisitClassTemplateDecl() 794 cast<NamespaceDecl>(DC)->getIdentifier()->isStr("__detail")) { in VisitClassTemplateDecl() 797 cast<NamespaceDecl>(DCParent)->getIdentifier() && in VisitClassTemplateDecl() 798 cast<NamespaceDecl>(DCParent)->getIdentifier()->isStr("tr1")) { in VisitClassTemplateDecl() 801 cast<NamespaceDecl>(DCParent2)->getIdentifier() && in VisitClassTemplateDecl() 802 cast<NamespaceDecl>(DCParent2)->getIdentifier()->isStr("std") && in VisitClassTemplateDecl()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | LLVMConventionsChecker.cpp | 42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
|
D | IteratorsChecker.cpp | 160 const NamespaceDecl *nameSpace = dyn_cast<NamespaceDecl>(dc); in getTemplateKind()
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.h | 77 llvm::DenseMap<const NamespaceDecl *, llvm::WeakVH> NameSpaceCache; 104 llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N);
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 119 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 92 void VisitNamespaceDecl(NamespaceDecl *D); 239 cast_or_null<NamespaceDecl>(Reader.GetDecl(Record[Idx++]))); in VisitTranslationUnitDecl() 795 void ASTDeclReader::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl() 805 cast_or_null<NamespaceDecl>(Reader.GetDecl(Record[Idx++]))); in VisitNamespaceDecl() 1504 D = NamespaceDecl::Create(*Context, 0, SourceLocation(), in ReadDeclRecord() 1781 NamespaceDecl *Anon = cast<NamespaceDecl>(Reader.GetDecl(Record[Idx++])); in UpdateDecl() 1789 cast<NamespaceDecl>(D)->OrigOrAnonNamespace.setPointer(Anon); in UpdateDecl()
|