/external/llvm-project/clang/lib/Tooling/Refactoring/ |
D | Lookup.cpp | 29 static llvm::SmallVector<const NamespaceDecl *, 4> 31 llvm::SmallVector<const NamespaceDecl *, 4> Namespaces; in getAllNamedNamespaces() 34 while (Context && (!isa<NamespaceDecl>(Context) || in getAllNamedNamespaces() 35 cast<NamespaceDecl>(Context)->isAnonymousNamespace())) in getAllNamedNamespaces() 41 Namespaces.push_back(cast<NamespaceDecl>(Context)); in getAllNamedNamespaces() 56 llvm::SmallVector<const NamespaceDecl *, 4> FromNamespaces = in usingFromDifferentCanonicalNamespace() 58 llvm::SmallVector<const NamespaceDecl *, 4> UseNamespaces = in usingFromDifferentCanonicalNamespace() 77 if (cast<NamespaceDecl>(*FromIter)->getDeclName() == in usingFromDifferentCanonicalNamespace() 78 cast<NamespaceDecl>(*UseIter)->getDeclName()) in usingFromDifferentCanonicalNamespace() 89 while (DeclA && !isa<NamespaceDecl>(DeclA)) in getBestNamespaceSubstr() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | ConcatNestedNamespacesCheck.cpp | 25 static bool anonymousOrInlineNamespace(const NamespaceDecl &ND) { in anonymousOrInlineNamespace() 29 static bool singleNamedNamespaceChild(const NamespaceDecl &ND) { in singleNamedNamespaceChild() 30 NamespaceDecl::decl_range Decls = ND.decls(); in singleNamedNamespaceChild() 34 const auto *ChildNamespace = dyn_cast<const NamespaceDecl>(*Decls.begin()); in singleNamedNamespaceChild() 56 [&Result](const NamespaceDecl *ND) { in concatNamespaces() 79 const NamespaceDecl &ND = *Result.Nodes.getNodeAs<NamespaceDecl>("namespace"); in check()
|
/external/clang/lib/Tooling/Core/ |
D | Lookup.cpp | 23 while (DeclA && !isa<NamespaceDecl>(DeclA)) in isInsideDifferentNamespaceWithSameName() 27 while (DeclB && !isa<NamespaceDecl>(DeclB)) in isInsideDifferentNamespaceWithSameName() 40 if (cast<NamespaceDecl>(DeclA)->getDeclName() == in isInsideDifferentNamespaceWithSameName() 41 cast<NamespaceDecl>(DeclB)->getDeclName()) in isInsideDifferentNamespaceWithSameName() 53 while (DeclA && !isa<NamespaceDecl>(DeclA)) in getBestNamespaceSubstr() 64 "::" + cast<NamespaceDecl>(DeclA)->getQualifiedNameAsString() + "::"; in getBestNamespaceSubstr()
|
D | QualTypeNames.cpp | 48 const NamespaceDecl *Namesp, 206 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS() 209 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 287 const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC); in createNestedNameSpecifierForScopeOf() 305 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf() 356 const NamespaceDecl *Namespace, in createNestedNameSpecifier() 360 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
|
/external/llvm-project/clang/lib/AST/ |
D | ComparisonCategories.cpp | 89 static const NamespaceDecl *lookupStdNamespace(const ASTContext &Ctx, in lookupStdNamespace() 90 NamespaceDecl *&StdNS) { in lookupStdNamespace() 95 StdNS = dyn_cast<NamespaceDecl>(Lookup.front()); in lookupStdNamespace() 101 const NamespaceDecl *StdNS, in lookupCXXRecordDecl() 117 if (const NamespaceDecl *NS = lookupStdNamespace(Ctx, StdNS)) in lookupInfo()
|
D | QualTypeNames.cpp | 32 const NamespaceDecl *Namesp, 190 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS() 193 NS = dyn_cast<NamespaceDecl>(NS->getDeclContext()); in createOuterNNS() 271 const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC); in createNestedNameSpecifierForScopeOf() 289 OuterNS = dyn_cast<NamespaceDecl>(Decl); in createNestedNameSpecifierForScopeOf() 340 const NamespaceDecl *Namespace, in createNestedNameSpecifier() 344 Namespace = dyn_cast<NamespaceDecl>(Namespace->getDeclContext()); in createNestedNameSpecifier()
|
D | NestedNameSpecifier.cpp | 74 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() 586 NamespaceDecl *Namespace, in Extend()
|
D | DeclCXX.cpp | 2825 if (auto *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create() 2839 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace() 2842 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace() 2845 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, in NamespaceDecl() function in NamespaceDecl 2847 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() 2857 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create() 2860 NamespaceDecl *PrevDecl) { in Create() 2861 return new (C, DC) NamespaceDecl(C, DC, Inline, StartLoc, IdLoc, Id, in Create() 2865 NamespaceDecl *NamespaceDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 2866 return new (C, ID) NamespaceDecl(C, nullptr, false, SourceLocation(), in CreateDeserialized() [all …]
|
/external/clang/lib/AST/ |
D | DeclCXX.cpp | 2038 if (NamespaceDecl *NS = dyn_cast_or_null<NamespaceDecl>(Used)) in Create() 2052 NamespaceDecl *UsingDirectiveDecl::getNominatedNamespace() { in getNominatedNamespace() 2056 return cast_or_null<NamespaceDecl>(NominatedNamespace); in getNominatedNamespace() 2059 NamespaceDecl::NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, in NamespaceDecl() function in NamespaceDecl 2061 IdentifierInfo *Id, NamespaceDecl *PrevDecl) in NamespaceDecl() 2071 NamespaceDecl *NamespaceDecl::Create(ASTContext &C, DeclContext *DC, in Create() 2074 NamespaceDecl *PrevDecl) { in Create() 2075 return new (C, DC) NamespaceDecl(C, DC, Inline, StartLoc, IdLoc, Id, in Create() 2079 NamespaceDecl *NamespaceDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 2080 return new (C, ID) NamespaceDecl(C, nullptr, false, SourceLocation(), in CreateDeserialized() [all …]
|
D | NestedNameSpecifier.cpp | 61 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() 575 NamespaceDecl *Namespace, in Extend()
|
D | DeclBase.cpp | 296 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace() 903 cast<NamespaceDecl>(this)->isInline(); in isInlineNamespace() 910 const NamespaceDecl *ND = cast<NamespaceDecl>(this); in isStdNamespace() 1004 return static_cast<NamespaceDecl*>(this)->getOriginalNamespace(); in getPrimaryContext() 1064 NamespaceDecl *Self = static_cast<NamespaceDecl *>(this); in collectAllContexts() 1065 for (NamespaceDecl *N = Self->getMostRecentDecl(); N; in collectAllContexts() 1570 const NamespaceDecl *NS = dyn_cast<NamespaceDecl>(O); in InEnclosingNamespaceSetOf()
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
D | UsingNamespaceDirectiveCheck.cpp | 45 const NamespaceDecl *NS) { in isStdLiteralsNamespace() 49 const auto *Parent = dyn_cast_or_null<NamespaceDecl>(NS->getParent()); in isStdLiteralsNamespace()
|
/external/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 27 class NamespaceDecl; variable 125 const NamespaceDecl *NS); 178 NamespaceDecl *getAsNamespace() const; 417 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
|
D | Decl.h | 86 NamespaceDecl *AnonymousNamespace; 92 NamespaceDecl *getAnonymousNamespace() const { return AnonymousNamespace; } in getAnonymousNamespace() 93 void setAnonymousNamespace(NamespaceDecl *D) { AnonymousNamespace = D; } in setAnonymousNamespace() 471 class NamespaceDecl : public NamedDecl, public DeclContext, 472 public Redeclarable<NamespaceDecl> 484 llvm::PointerIntPair<NamespaceDecl *, 1, bool> AnonOrFirstNamespaceAndInline; 486 NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, 488 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 490 typedef Redeclarable<NamespaceDecl> redeclarable_base; 491 NamespaceDecl *getNextRedeclarationImpl() override; [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | ForwardDeclarationNamespaceCheck.cpp | 98 auto *Ns1 = NamespaceDecl::castFromDeclContext(ParentDecl1); in haveSameNamespaceOrTranslationUnit() 99 auto *Ns2 = NamespaceDecl::castFromDeclContext(ParentDecl2); in haveSameNamespaceOrTranslationUnit() 108 const auto *NsDecl = cast<NamespaceDecl>(ParentDecl); in getNameOfNamespace()
|
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/ |
D | PreferRegisterOverUnsignedCheck.cpp | 44 if (const auto *Namespace = dyn_cast<NamespaceDecl>(Context)) in check() 49 const NamespaceDecl *Namespace = UsingDirective->getNominatedNamespace(); in check()
|
/external/llvm-project/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 35 class NamespaceDecl; variable 132 const NamespaceDecl *NS); 185 NamespaceDecl *getAsNamespace() const; 431 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
|
D | Decl.h | 67 class NamespaceDecl; variable 87 NamespaceDecl *AnonymousNamespace = nullptr; 96 NamespaceDecl *getAnonymousNamespace() const { return AnonymousNamespace; } in getAnonymousNamespace() 97 void setAnonymousNamespace(NamespaceDecl *D) { AnonymousNamespace = D; } in setAnonymousNamespace() 512 class NamespaceDecl : public NamedDecl, public DeclContext, 513 public Redeclarable<NamespaceDecl> 526 llvm::PointerIntPair<NamespaceDecl *, 1, bool> AnonOrFirstNamespaceAndInline; 528 NamespaceDecl(ASTContext &C, DeclContext *DC, bool Inline, 530 IdentifierInfo *Id, NamespaceDecl *PrevDecl); 532 using redeclarable_base = Redeclarable<NamespaceDecl>; [all …]
|
D | ComparisonCategories.h | 35 class NamespaceDecl; variable 223 mutable NamespaceDecl *StdNS = nullptr;
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | AST.cpp | 80 llvm::DenseSet<const NamespaceDecl *> 84 llvm::DenseSet<const NamespaceDecl *> VisibleNamespaceDecls; in getUsingNamespaceDirectives() 123 auto *NSD = llvm::cast<NamespaceDecl>(CurContext); in getQualification() 225 if (isa<NamespaceDecl>(ND)) in printName() 279 if (const auto *NS = dyn_cast<NamespaceDecl>(Ctx)) in printNamespaceScope() 440 [CanonNSD](const NamespaceDecl *NSD) { in getQualification()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangASTImporter.h | 109 void RegisterNamespaceMap(const clang::NamespaceDecl *decl, 112 NamespaceMapSP GetNamespaceMap(const clang::NamespaceDecl *decl); 114 void BuildNamespaceMap(const clang::NamespaceDecl *decl); 257 typedef llvm::DenseMap<const clang::NamespaceDecl *, NamespaceMapSP>
|
/external/llvm-project/clang-tools-extra/clang-change-namespace/ |
D | ChangeNamespace.cpp | 68 const NamespaceDecl *getOuterNamespace(const NamespaceDecl *InnerNs, in getOuterNamespace() 77 while (CurrentContext && !llvm::isa<NamespaceDecl>(CurrentContext)) in getOuterNamespace() 81 CurrentNs = llvm::cast<NamespaceDecl>(CurrentContext); in getOuterNamespace() 537 Result.Nodes.getNodeAs<NamespaceDecl>("old_ns")) { in run() 648 static SourceLocation getLocAfterNamespaceLBrace(const NamespaceDecl *NsDecl, in getLocAfterNamespaceLBrace() 669 const NamespaceDecl *NsDecl) { in moveOldNamespace() 692 const NamespaceDecl *OuterNs = getOuterNamespace(NsDecl, DiffOldNamespace); in moveOldNamespace() 746 const auto *NsDecl = Result.Nodes.getNodeAs<NamespaceDecl>("ns_decl"); in moveClassForwardDeclaration() 778 const auto *NsDecl = llvm::cast<NamespaceDecl>(NsDeclContext); in replaceQualifiedSymbolInDeclContext()
|
/external/llvm-project/lldb/source/Plugins/SymbolFile/PDB/ |
D | PDBASTParser.h | 60 clang::NamespaceDecl *FindNamespaceDecl(const clang::DeclContext *parent, 71 typedef std::set<clang::NamespaceDecl *> NamespacesSet;
|
/external/clang/test/SemaCXX/ |
D | member-expr.cpp | 49 struct NamespaceDecl; 55 struct NamespaceDecl : NamedDecl { struct
|
/external/llvm-project/clang/test/SemaCXX/ |
D | member-expr.cpp | 49 struct NamespaceDecl; 55 struct NamespaceDecl : NamedDecl { struct
|