Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DNestedNameSpecifier.h29 class NamespaceDecl; variable
122 NamespaceDecl *NS);
170 NamespaceDecl *getAsNamespace() const;
395 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
DDecl.h71 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 …]
DDeclCXX.h2090 NamespaceDecl *getNominatedNamespace();
2092 const NamespaceDecl *getNominatedNamespace() const {
2174 NamespaceDecl *getNamespace() {
2178 return cast<NamespaceDecl>(Namespace);
2181 const NamespaceDecl *getNamespace() const {
/external/clang/test/SemaCXX/
Dmember-expr.cpp47 struct NamespaceDecl;
53 struct NamespaceDecl : NamedDecl { struct
/external/clang/lib/AST/
DNestedNameSpecifier.cpp58 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()
DDeclBase.cpp196 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()
DDecl.cpp297 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()
DDeclCXX.cpp1594 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()
DItaniumMangle.cpp468 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()
DDeclPrinter.cpp59 void VisitNamespaceDecl(NamespaceDecl *D);
273 else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) || in VisitDeclContext()
623 void DeclPrinter::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl()
DASTDiagnostic.cpp300 if (isa<NamespaceDecl>(ND)) in FormatASTNodeDiagnosticArgument()
DASTImporter.cpp100 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/
DExternalSemaSource.h55 llvm::SmallVectorImpl<NamespaceDecl *> &Namespaces);
DTemplate.h336 Decl *VisitNamespaceDecl(NamespaceDecl *D);
/external/clang/tools/libclang/
DCIndexUSRs.cpp74 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/
DSemaCXXScopeSpec.cpp266 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()
DSemaLookup.cpp1191 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()
DSemaExceptionSpec.cpp398 if (NamespaceDecl* NS = dyn_cast<NamespaceDecl>(DC)) { in CheckEquivalentExceptionSpec()
DSemaDeclCXX.cpp4620 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 …]
DSemaTemplateInstantiateDecl.cpp112 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/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
DIteratorsChecker.cpp160 const NamespaceDecl *nameSpace = dyn_cast<NamespaceDecl>(dc); in getTemplateKind()
/external/clang/lib/CodeGen/
DCGDebugInfo.h77 llvm::DenseMap<const NamespaceDecl *, llvm::WeakVH> NameSpaceCache;
104 llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N);
/external/clang/lib/Frontend/
DASTConsumers.cpp119 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp92 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()

123