Home
last modified time | relevance | path

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

1234

/external/lldb/include/lldb/Symbol/
DClangNamespaceDecl.h27 ClangNamespaceDecl (clang::ASTContext *ast, clang::NamespaceDecl *namespace_decl) : in ClangNamespaceDecl()
80 clang::NamespaceDecl *
87 SetNamespaceDecl (clang::NamespaceDecl *namespace_decl) in SetNamespaceDecl()
97 clang::NamespaceDecl *m_namespace_decl;
DClangASTImporter.h161 void RegisterNamespaceMap (const clang::NamespaceDecl *decl,
164 NamespaceMapSP GetNamespaceMap (const clang::NamespaceDecl *decl);
166 void BuildNamespaceMap (const clang::NamespaceDecl *decl);
289 typedef std::map<const clang::NamespaceDecl *, NamespaceMapSP> NamespaceMetaMap;
/external/lldb/source/Symbol/
DClangASTImporter.cpp361 ClangASTImporter::RegisterNamespaceMap(const clang::NamespaceDecl *decl, in RegisterNamespaceMap()
370 ClangASTImporter::GetNamespaceMap(const clang::NamespaceDecl *decl) in GetNamespaceMap()
385 ClangASTImporter::BuildNamespaceMap(const clang::NamespaceDecl *decl) in BuildNamespaceMap()
391 const NamespaceDecl *parent_namespace = dyn_cast<NamespaceDecl>(parent_context); in BuildNamespaceMap()
654 if (clang::NamespaceDecl *to_namespace = dyn_cast<clang::NamespaceDecl>(to)) in Imported()
656 clang::NamespaceDecl *from_namespace = dyn_cast<clang::NamespaceDecl>(from); in Imported()
692 if (isa<NamespaceDecl>(from)) in Imported()
694 NamespaceDecl *to_namespace_decl = dyn_cast<NamespaceDecl>(to); in Imported()
DClangASTContext.cpp1798 NamespaceDecl *
1801 NamespaceDecl *namespace_decl = NULL; in GetUniqueNamespaceDeclaration()
1814 namespace_decl = dyn_cast<clang::NamespaceDecl>(decl); in GetUniqueNamespaceDeclaration()
1819 namespace_decl = NamespaceDecl::Create(*ast, in GetUniqueNamespaceDeclaration()
1837 namespace_decl = NamespaceDecl::Create(*ast, in GetUniqueNamespaceDeclaration()
1850 NamespaceDecl *parent_namespace_decl = cast<NamespaceDecl>(decl_ctx); in GetUniqueNamespaceDeclaration()
1856 namespace_decl = NamespaceDecl::Create(*ast, in GetUniqueNamespaceDeclaration()
/external/clang/include/clang/AST/
DNestedNameSpecifier.h27 class NamespaceDecl; variable
125 const NamespaceDecl *NS);
178 NamespaceDecl *getAsNamespace() const;
416 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
DDecl.h83 NamespaceDecl *AnonymousNamespace;
92 NamespaceDecl *getAnonymousNamespace() const { return AnonymousNamespace; } in getAnonymousNamespace()
93 void setAnonymousNamespace(NamespaceDecl *D) { AnonymousNamespace = D; } in setAnonymousNamespace()
398 class NamespaceDecl : public NamedDecl, public DeclContext,
399 public Redeclarable<NamespaceDecl>
411 llvm::PointerIntPair<NamespaceDecl *, 1, bool> AnonOrFirstNamespaceAndInline;
413 NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline,
415 IdentifierInfo *Id, NamespaceDecl *PrevDecl);
417 typedef Redeclarable<NamespaceDecl> redeclarable_base;
418 NamespaceDecl *getNextRedeclarationImpl() override;
[all …]
/external/clang/lib/AST/
DDeclCXX.cpp1958 if (NamespaceDecl *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create()
1972 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace()
1976 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace()
1979 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, in NamespaceDecl() function in NamespaceDecl
1981 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl()
1991 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create()
1994 NamespaceDecl *PrevDecl) { in Create()
1995 return new (C, DC) NamespaceDecl(C, DC, Inline, StartLoc, IdLoc, Id, in Create()
1999 NamespaceDecl *NamespaceDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2000 return new (C, ID) NamespaceDecl(C, nullptr, false, SourceLocation(), in CreateDeserialized()
[all …]
DNestedNameSpecifier.cpp61 const NamespaceDecl *NS) { in Create()
70 Mockup.Specifier = const_cast<NamespaceDecl *>(NS); in Create()
143 return isa<NamespaceDecl>(ND) ? Namespace : NamespaceAlias; in getKind()
157 NamespaceDecl *NestedNameSpecifier::getAsNamespace() const { in getAsNamespace()
159 return dyn_cast<NamespaceDecl>(static_cast<NamedDecl *>(Specifier)); in getAsNamespace()
559 NamespaceDecl *Namespace, in Extend()
DDeclBase.cpp246 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace()
820 cast<NamespaceDecl>(this)->isInline(); in isInlineNamespace()
827 const NamespaceDecl *ND = cast<NamespaceDecl>(this); in isStdNamespace()
920 return static_cast<NamespaceDecl*>(this)->getOriginalNamespace(); in getPrimaryContext()
980 NamespaceDecl *Self = static_cast<NamespaceDecl *>(this); in collectAllContexts()
981 for (NamespaceDecl *N = Self->getMostRecentDecl(); N; in collectAllContexts()
1490 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(O); in InEnclosingNamespaceSetOf()
/external/clang/test/SemaCXX/
Dmember-expr.cpp47 struct NamespaceDecl;
53 struct NamespaceDecl : NamedDecl { struct
/external/clang/include/clang/Sema/
DMultiplexExternalSemaSource.h28 class NamespaceDecl; variable
226 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces) override;
DExternalSemaSource.h75 SmallVectorImpl<NamespaceDecl *> &Namespaces);
/external/lldb/source/Expression/
DClangASTSource.cpp202 if (const NamespaceDecl *namespace_context = dyn_cast<NamespaceDecl>(decl_ctx)) in CompleteType()
519 if (const NamespaceDecl *namespace_context = dyn_cast<NamespaceDecl>(context.m_decl_context)) in FindExternalVisibleDecls()
578 NamespaceDecl *clang_namespace_decl = AddNamespace(context, context.m_namespace_map); in FindExternalVisibleDecls()
1661 NamespaceDecl *
1674 NamespaceDecl *copied_namespace_decl = dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()
1683 return dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()
/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp119 NamespaceDecl *NewNamespace = in CorrectTypo()
120 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), in CorrectTypo()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
/external/lldb/include/lldb/Core/
DClangForward.h80 class NamespaceDecl; variable
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp295 if (isa<NamespaceDecl>(SD) || isa<NamespaceAliasDecl>(SD)) in isAcceptableNestedNameSpecifier()
400 return isa<NamespaceDecl>(ND) || isa<NamespaceAliasDecl>(ND); in isNonTypeNestedNameSpecifier()
677 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) { in BuildCXXNestedNameSpecifier()
DSemaLookup.cpp1469 SmallVector<NamespaceDecl*, 8> Queue; in LookupQualifiedNameInUsingDirectives()
1474 NamespaceDecl *ND = I->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives()
1490 NamespaceDecl *ND = Queue.pop_back_val(); in LookupQualifiedNameInUsingDirectives()
1522 NamespaceDecl *Nom = I->getNominatedNamespace(); in LookupQualifiedNameInUsingDirectives()
3550 const llvm::MapVector<NamespaceDecl *, bool> &KnownNamespaces) { in addNamespaces() argument
3745 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C)) in NamespaceSpecifierSet()
3761 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in buildContextChain()
3776 if (NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(*C)) { in buildNestedNameSpecifier()
4184 SmallVector<NamespaceDecl *, 4> ExternalKnownNamespaces; in makeTypoCorrectionConsumer()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCallAndReturn.cpp387 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC); in IsInStdNamespace()
392 if (!isa<NamespaceDecl>(Parent)) in IsInStdNamespace()
394 ND = cast<NamespaceDecl>(Parent); in IsInStdNamespace()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp263 void VisitNamespaceDecl(NamespaceDecl *D);
1203 void ASTDeclReader::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl()
1229 NamespaceDecl *Anon = cast<NamespaceDecl>(Reader.GetDecl(AnonNamespace)); in VisitNamespaceDecl()
2230 if (auto *Namespace = dyn_cast<NamespaceDecl>(D)) in mergeRedeclarable()
2232 assert_cast<NamespaceDecl*>(ExistingCanon)); in mergeRedeclarable()
2401 static NamespaceDecl *getNamespace(const NestedNameSpecifier *X) { in getNamespace()
2522 if (NamespaceDecl *NamespaceX = dyn_cast<NamespaceDecl>(X)) { in isSameEntity()
2523 NamespaceDecl *NamespaceY = cast<NamespaceDecl>(Y); in isSameEntity()
2587 if (NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in getPrimaryContextForMerging()
3015 D = NamespaceDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
[all …]
/external/clang/lib/Frontend/
DASTConsumers.cpp206 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
/external/clang/lib/CodeGen/
DCGDebugInfo.h113 llvm::DenseMap<const NamespaceDecl *, llvm::TrackingMDRef> NameSpaceCache;
156 llvm::DINameSpace getOrCreateNameSpace(const NamespaceDecl *N);
/external/lldb/include/lldb/Expression/
DClangASTSource.h220 clang::NamespaceDecl *
/external/clang/tools/libclang/
DIndexingContext.cpp629 bool IndexingContext::handleNamespace(const NamespaceDecl *D) { in handleNamespace()
1098 } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) { in getEntityInfo()
1137 if (const NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(D)) in getRefCursor()
DCursorVisitor.h232 bool VisitNamespaceDecl(NamespaceDecl *D);

1234