/external/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 26 class NamespaceDecl; variable 120 const NamespaceDecl *NS); 168 NamespaceDecl *getAsNamespace() const; 397 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
|
D | Decl.h | 77 NamespaceDecl *AnonymousNamespace; 86 NamespaceDecl *getAnonymousNamespace() const { return AnonymousNamespace; } in getAnonymousNamespace() 87 void setAnonymousNamespace(NamespaceDecl *D) { AnonymousNamespace = D; } in setAnonymousNamespace() 309 class NamespaceDecl : public NamedDecl, public DeclContext, 310 public Redeclarable<NamespaceDecl> 324 llvm::PointerIntPair<NamespaceDecl *, 1, bool> AnonOrFirstNamespaceAndInline; 326 NamespaceDecl(DeclContext *DC, bool Inline, SourceLocation StartLoc, 328 NamespaceDecl *PrevDecl); 330 typedef Redeclarable<NamespaceDecl> redeclarable_base; 331 virtual NamespaceDecl *getNextRedeclaration() { in getNextRedeclaration() [all …]
|
D | DeclCXX.h | 2476 NamespaceDecl *getNominatedNamespace(); 2478 const NamespaceDecl *getNominatedNamespace() const { 2564 NamespaceDecl *getNamespace() { 2568 return cast<NamespaceDecl>(Namespace); 2571 const NamespaceDecl *getNamespace() const {
|
/external/clang/lib/AST/ |
D | DeclCXX.cpp | 1806 if (NamespaceDecl *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create() 1820 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace() 1824 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace() 1827 void NamespaceDecl::anchor() { } in anchor() 1829 NamespaceDecl::NamespaceDecl(DeclContext *DC, bool Inline, in NamespaceDecl() function in NamespaceDecl 1832 NamespaceDecl *PrevDecl) in NamespaceDecl() 1842 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create() 1845 NamespaceDecl *PrevDecl) { in Create() 1846 return new (C) NamespaceDecl(DC, Inline, StartLoc, IdLoc, Id, PrevDecl); in Create() 1849 NamespaceDecl *NamespaceDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() [all …]
|
D | NestedNameSpecifier.cpp | 61 const NamespaceDecl *NS) { in Create() 69 Mockup.Specifier = const_cast<NamespaceDecl *>(NS); in Create() 128 return isa<NamespaceDecl>(static_cast<NamedDecl *>(Specifier))? Namespace in getKind() 143 NamespaceDecl *NestedNameSpecifier::getAsNamespace() const { in getAsNamespace() 145 return dyn_cast<NamespaceDecl>(static_cast<NamedDecl *>(Specifier)); in getAsNamespace() 526 NamespaceDecl *Namespace, in Extend()
|
D | DeclBase.cpp | 238 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace() 762 cast<NamespaceDecl>(this)->isInline(); in isInlineNamespace() 844 return static_cast<NamespaceDecl*>(this)->getOriginalNamespace(); in getPrimaryContext() 905 NamespaceDecl *Self = static_cast<NamespaceDecl *>(this); in collectAllContexts() 906 for (NamespaceDecl *N = Self->getMostRecentDecl(); N; in collectAllContexts() 1315 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(O); in InEnclosingNamespaceSetOf()
|
D | ItaniumMangle.cpp | 493 static bool isStd(const NamespaceDecl *NS) { in isStd() 508 return isStd(cast<NamespaceDecl>(DC)); in isStdNamespace() 978 } else if (NamespaceDecl *nspace = in mangleUnresolvedPrefix() 979 dyn_cast<NamespaceDecl>(firstQualifierLookup)) { in mangleUnresolvedPrefix() 1065 if (const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(ND)) { in mangleUnqualifiedName() 3329 if (const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(ND)) { in mangleStandardSubstitution()
|
D | Decl.cpp | 567 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl() 706 } else if (isa<NamespaceDecl>(D) && !D->isInAnonymousNamespace()) { in getLVForNamespaceScopeDecl() 1168 } else if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(*I)) { in printQualifiedName() 2076 if (const NamespaceDecl *Namespace = cast<NamespaceDecl>(DC)) { in isGlobal()
|
D | DeclPrinter.cpp | 64 void VisitNamespaceDecl(NamespaceDecl *D); 299 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext() 705 void DeclPrinter::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl()
|
/external/clang/test/SemaCXX/ |
D | member-expr.cpp | 47 struct NamespaceDecl; 53 struct NamespaceDecl : NamedDecl { struct
|
/external/clang/include/clang/Sema/ |
D | MultiplexExternalSemaSource.h | 28 class NamespaceDecl; variable 216 virtual void ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces);
|
D | ExternalSemaSource.h | 68 SmallVectorImpl<NamespaceDecl *> &Namespaces);
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 218 void VisitNamespaceDecl(NamespaceDecl *D); 1004 void ASTDeclReader::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl() 1016 NamespaceDecl *Anon = ReadDeclAs<NamespaceDecl>(Record, Idx); in VisitNamespaceDecl() 1589 if (NamespaceDecl *Namespace in mergeRedeclarable() 1590 = dyn_cast<NamespaceDecl>(static_cast<T*>(D))) { in mergeRedeclarable() 1592 static_cast<NamespaceDecl *>(static_cast<void*>(ExistingCanon))); in mergeRedeclarable() 1772 if (NamespaceDecl *NamespaceX = dyn_cast<NamespaceDecl>(X)) { in isSameEntity() 1773 NamespaceDecl *NamespaceY = cast<NamespaceDecl>(Y); in isSameEntity() 1872 } else if (NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D)) { in attachPreviousDecl() 1873 ND->RedeclLink.setNext(cast<NamespaceDecl>(previous)); in attachPreviousDecl() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | LLVMConventionsChecker.cpp | 42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
|
/external/clang/lib/Sema/ |
D | SemaCXXScopeSpec.cpp | 271 if (isa<NamespaceDecl>(SD) || isa<NamespaceAliasDecl>(SD)) in isAcceptableNestedNameSpecifier() 367 return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND); in isNonTypeNestedNameSpecifier() 583 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) { in BuildCXXNestedNameSpecifier()
|
D | SemaLookup.cpp | 1268 SmallVector<NamespaceDecl*, 8> Queue; in LookupQualifiedNameInUsingDirectives() 1273 NamespaceDecl *ND = (*I)->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives() 1289 NamespaceDecl *ND = Queue.back(); in LookupQualifiedNameInUsingDirectives() 1322 NamespaceDecl *Nom = (*I)->getNominatedNamespace(); in LookupQualifiedNameInUsingDirectives() 3365 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C)) in NamespaceSpecifierSet() 3372 void AddNamespace(NamespaceDecl *ND); 3389 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in BuildContextChain() 3415 void NamespaceSpecifierSet::AddNamespace(NamespaceDecl *ND) { in AddNamespace() 3431 if (NamespaceDecl *ND = in AddNamespace() 3433 dyn_cast_or_null<NamespaceDecl>(NamespaceDeclChain.back())) { in AddNamespace() [all …]
|
D | MultiplexExternalSemaSource.cpp | 192 SmallVectorImpl<NamespaceDecl*> &Namespaces){ in ReadKnownNamespaces()
|
D | SemaDeclCXX.cpp | 6010 NamespaceDecl *PrevNS) { in DiagnoseNamespaceInlineMismatch() 6022 for (NamespaceDecl *NS = PrevNS->getMostRecentDecl(); NS; in DiagnoseNamespaceInlineMismatch() 6065 NamespaceDecl *PrevNS = 0; in ActOnStartNamespaceDef() 6091 PrevNS = dyn_cast_or_null<NamespaceDecl>(PrevDecl); in ActOnStartNamespaceDef() 6124 NamespaceDecl *ND = cast<NamespaceDecl>(Parent); in ActOnStartNamespaceDef() 6133 NamespaceDecl *Namespc = NamespaceDecl::Create(Context, CurContext, IsInline, in ActOnStartNamespaceDef() 6157 cast<NamespaceDecl>(Parent)->setAnonymousNamespace(Namespc); in ActOnStartNamespaceDef() 6205 static inline NamespaceDecl *getNamespaceDecl(NamedDecl *D) { in getNamespaceDecl() 6208 return dyn_cast_or_null<NamespaceDecl>(D); in getNamespaceDecl() 6214 NamespaceDecl *Namespc = dyn_cast_or_null<NamespaceDecl>(Dcl); in ActOnFinishNamespaceDef() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineCallAndReturn.cpp | 384 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC); in IsInStdNamespace() 389 if (!isa<NamespaceDecl>(Parent)) in IsInStdNamespace() 391 ND = cast<NamespaceDecl>(Parent); in IsInStdNamespace()
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 193 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
|
/external/clang/lib/CodeGen/ |
D | CGDebugInfo.h | 97 llvm::DenseMap<const NamespaceDecl *, llvm::WeakVH> NameSpaceCache; 131 llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N);
|
D | CGVTables.cpp | 830 isa<NamespaceDecl>(DC) && in GenerateClassData() 831 cast<NamespaceDecl>(DC)->getIdentifier() && in GenerateClassData() 832 cast<NamespaceDecl>(DC)->getIdentifier()->isStr("__cxxabiv1") && in GenerateClassData()
|
/external/clang/tools/libclang/ |
D | CursorVisitor.h | 232 bool VisitNamespaceDecl(NamespaceDecl *D);
|
D | IndexingContext.cpp | 620 bool IndexingContext::handleNamespace(const NamespaceDecl *D) { in handleNamespace() 1089 } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) { in getEntityInfo() 1128 if (const NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(D)) in getRefCursor()
|
D | CIndexUSRs.cpp | 73 void VisitNamespaceDecl(const NamespaceDecl *D); 269 void USRGenerator::VisitNamespaceDecl(const NamespaceDecl *D) { in VisitNamespaceDecl()
|