Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/
H A DLookup.cpp26 static llvm::SmallVector<const NamespaceDecl *, 4>
28 llvm::SmallVector<const NamespaceDecl *, 4> Namespaces; in getAllNamedNamespaces()
31 while (Context && (!isa<NamespaceDecl>(Context) || in getAllNamedNamespaces()
32 cast<NamespaceDecl>(Context)->isAnonymousNamespace())) in getAllNamedNamespaces()
38 Namespaces.push_back(cast<NamespaceDecl>(Context)); in getAllNamedNamespaces()
53 llvm::SmallVector<const NamespaceDecl *, 4> FromNamespaces = in usingFromDifferentCanonicalNamespace()
55 llvm::SmallVector<const NamespaceDecl *, 4> UseNamespaces = in usingFromDifferentCanonicalNamespace()
74 if (cast<NamespaceDecl>(*FromIter)->getDeclName() == in usingFromDifferentCanonicalNamespace()
75 cast<NamespaceDecl>(*UseIter)->getDeclName()) in usingFromDifferentCanonicalNamespace()
86 while (DeclA && !isa<NamespaceDecl>(DeclA)) in getBestNamespaceSubstr()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DComparisonCategories.cpp69 static const NamespaceDecl *lookupStdNamespace(const ASTContext &Ctx, in lookupStdNamespace()
70 NamespaceDecl *&StdNS) { in lookupStdNamespace()
75 StdNS = dyn_cast<NamespaceDecl>(Lookup.front()); in lookupStdNamespace()
81 const NamespaceDecl *StdNS, in lookupCXXRecordDecl()
97 if (const NamespaceDecl *NS = lookupStdNamespace(Ctx, StdNS)) in lookupInfo()
H A DQualTypeNames.cpp35 const NamespaceDecl *Namesp,
193 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS()
196 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS()
274 const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC); in createNestedNameSpecifierForScopeOf()
292 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf()
343 const NamespaceDecl *Namespace, in createNestedNameSpecifier()
347 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
H A DDeclCXX.cpp2552 if (auto *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create()
2566 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace()
2569 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace()
2572 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, in NamespaceDecl() function in NamespaceDecl
2584 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create()
2592 NamespaceDecl *NamespaceDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2597 NamespaceDecl *NamespaceDecl::getOriginalNamespace() { in getOriginalNamespace()
2604 const NamespaceDecl *NamespaceDecl::getOriginalNamespace() const { in getOriginalNamespace()
2613 NamespaceDecl *NamespaceDecl::getNextRedeclarationImpl() { in getNextRedeclarationImpl()
2617 NamespaceDecl *NamespaceDecl::getPreviousDeclImpl() { in getPreviousDeclImpl()
[all …]
H A DNestedNameSpecifier.cpp74 const NamespaceDecl *NS) { in Create()
83 Mockup.Specifier = const_cast<NamespaceDecl *>(NS); in Create()
155 return isa<NamespaceDecl>(ND) ? Namespace : NamespaceAlias; in getKind()
169 NamespaceDecl *NestedNameSpecifier::getAsNamespace() const { in getAsNamespace()
171 return dyn_cast<NamespaceDecl>(static_cast<NamedDecl *>(Specifier)); in getAsNamespace()
598 NamespaceDecl *Namespace, in Extend()
H A DDeclBase.cpp349 if (const auto *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace()
438 if (isa<TranslationUnitDecl>(this) || isa<NamespaceDecl>(this)) in isExported()
1059 cast<NamespaceDecl>(this)->isInline(); in isInlineNamespace()
1066 const auto *ND = cast<NamespaceDecl>(this); in isStdNamespace()
1172 return static_cast<NamespaceDecl *>(this)->getOriginalNamespace(); in getPrimaryContext()
1231 auto *Self = static_cast<NamespaceDecl *>(this); in collectAllContexts()
1232 for (NamespaceDecl *N = Self->getMostRecentDecl(); N; in collectAllContexts()
1776 const auto *NS = dyn_cast<NamespaceDecl>(O); in InEnclosingNamespaceSetOf()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DNestedNameSpecifier.h34 class NamespaceDecl; variable
131 const NamespaceDecl *NS);
184 NamespaceDecl *getAsNamespace() const;
425 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
H A DDecl.h66 class NamespaceDecl; variable
113 NamespaceDecl *AnonymousNamespace = nullptr;
537 NamespaceDecl *getNextRedeclarationImpl() override;
538 NamespaceDecl *getPreviousDeclImpl() override;
539 NamespaceDecl *getMostRecentDeclImpl() override;
586 NamespaceDecl *getOriginalNamespace();
589 const NamespaceDecl *getOriginalNamespace() const;
598 NamespaceDecl *getAnonymousNamespace() const { in getAnonymousNamespace()
602 void setAnonymousNamespace(NamespaceDecl *D) { in setAnonymousNamespace()
607 NamespaceDecl *getCanonicalDecl() override { in getCanonicalDecl()
[all …]
H A DComparisonCategories.h36 class NamespaceDecl; variable
238 mutable NamespaceDecl *StdNS = nullptr;
/freebsd-12.1/contrib/llvm/tools/lldb/source/Symbol/
H A DClangASTImporter.cpp734 void ClangASTImporter::RegisterNamespaceMap(const clang::NamespaceDecl *decl, in RegisterNamespaceMap()
742 ClangASTImporter::GetNamespaceMap(const clang::NamespaceDecl *decl) { in GetNamespaceMap()
755 void ClangASTImporter::BuildNamespaceMap(const clang::NamespaceDecl *decl) { in BuildNamespaceMap()
760 const NamespaceDecl *parent_namespace = in BuildNamespaceMap()
761 dyn_cast<NamespaceDecl>(parent_context); in BuildNamespaceMap()
1025 if (clang::NamespaceDecl *to_namespace = in Imported()
1026 dyn_cast<clang::NamespaceDecl>(to)) { in Imported()
1027 clang::NamespaceDecl *from_namespace = in Imported()
1028 dyn_cast<clang::NamespaceDecl>(from); in Imported()
1064 if (isa<NamespaceDecl>(from)) { in Imported()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Symbol/
H A DClangASTImporter.h172 void RegisterNamespaceMap(const clang::NamespaceDecl *decl,
175 NamespaceMapSP GetNamespaceMap(const clang::NamespaceDecl *decl);
177 void BuildNamespaceMap(const clang::NamespaceDecl *decl);
275 typedef std::map<const clang::NamespaceDecl *, NamespaceMapSP>
H A DClangASTContext.h359 clang::NamespaceDecl *
362 static clang::NamespaceDecl *
530 static clang::NamespaceDecl *
983 clang::NamespaceDecl *ns_decl);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/PDB/
H A DPDBASTParser.h61 clang::NamespaceDecl *FindNamespaceDecl(const clang::DeclContext *parent,
72 typedef std::set<clang::NamespaceDecl *> NamespacesSet;
H A DPDBASTParser.cpp1049 clang::NamespaceDecl *namespace_decl = in GetDeclContextContainingSymbol()
1087 clang::NamespaceDecl *
1102 for (clang::NamespaceDecl *namespace_decl : *set) in FindNamespaceDecl()
1106 for (clang::NamespaceDecl *namespace_decl : *set) in FindNamespaceDecl()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DMultiplexExternalSemaSource.h28 class NamespaceDecl; variable
219 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces) override;
H A DExternalSemaSource.h80 SmallVectorImpl<NamespaceDecl *> &Namespaces);
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbAstBuilder.h27 class NamespaceDecl; variable
65 clang::NamespaceDecl *GetOrCreateNamespaceDecl(llvm::StringRef name,
H A DPdbAstBuilder.cpp807 clang::NamespaceDecl *
981 if (clang::NamespaceDecl *ns = llvm::dyn_cast<clang::NamespaceDecl>(parent)) { in GetOrCreateFunctionDecl()
1195 clang::NamespaceDecl *ns = llvm::dyn_cast<clang::NamespaceDecl>(context); in ParseAllNamespacesPlusChildrenOf()
1318 clang::NamespaceDecl &ns = *llvm::dyn_cast<clang::NamespaceDecl>(&context); in ParseDeclsForContext()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTSource.cpp312 if (const NamespaceDecl *namespace_context = in CompleteType()
313 dyn_cast<NamespaceDecl>(decl_ctx)) { in CompleteType()
713 if (const NamespaceDecl *namespace_context = in FindExternalVisibleDecls()
714 dyn_cast<NamespaceDecl>(context.m_decl_context)) { in FindExternalVisibleDecls()
758 NamespaceDecl *clang_namespace_decl = in FindExternalVisibleDecls()
1924 NamespaceDecl *ClangASTSource::AddNamespace( in AddNamespace()
1936 clang::NamespaceDecl *src_namespace_decl = in AddNamespace()
1947 NamespaceDecl *copied_namespace_decl = dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()
1957 return dyn_cast<NamespaceDecl>(copied_decl); in AddNamespace()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DLLVMConventionsChecker.cpp41 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DAnalysisDeclContext.cpp326 const auto *ND = dyn_cast<NamespaceDecl>(DC); in isInStdNamespace()
331 if (!isa<NamespaceDecl>(Parent)) in isInStdNamespace()
333 ND = cast<NamespaceDecl>(Parent); in isInStdNamespace()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp323 if (isa<NamespaceDecl>(SD)) in isAcceptableNestedNameSpecifier()
426 return Found.getAsSingle<NamespaceDecl>(); in isNonTypeNestedNameSpecifier()
709 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) { in BuildCXXNestedNameSpecifier()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h109 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace(); in TraverseNestedNameSpecifierLoc()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Core/
H A DClangForward.h78 class NamespaceDecl; variable
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFASTParserClang.h73 clang::NamespaceDecl *ResolveNamespaceDIE(const DWARFDIE &die);

1234