Home
last modified time | relevance | path

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

123

/external/clang/lib/Tooling/Core/
DLookup.cpp23 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()
DQualTypeNames.cpp48 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/clang/lib/AST/
DDeclCXX.cpp2038 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 …]
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()
575 NamespaceDecl *Namespace, in Extend()
DDeclBase.cpp296 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/clang/include/clang/AST/
DNestedNameSpecifier.h27 class NamespaceDecl; variable
125 const NamespaceDecl *NS);
178 NamespaceDecl *getAsNamespace() const;
417 void Extend(ASTContext &Context, NamespaceDecl *Namespace,
DDecl.h86 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/v8/tools/clang/blink_gc_plugin/
DRecordInfo.cpp568 static bool isInStdNamespace(clang::Sema& sema, NamespaceDecl* ns) in isInStdNamespace()
573 ns = dyn_cast<NamespaceDecl>(ns->getParent()); in isInStdNamespace()
642 NamespaceDecl* ns = in CreateEdge()
643 dyn_cast<NamespaceDecl>(info->record()->getDeclContext()); in CreateEdge()
668 NamespaceDecl* ns = in CreateEdge()
669 dyn_cast<NamespaceDecl>(info->record()->getDeclContext()); in CreateEdge()
DBlinkGCPluginConsumer.cpp707 if (NamespaceDecl* decl = dyn_cast<NamespaceDecl>(context)) { in InCheckedNamespace()
/external/clang/test/SemaCXX/
Dmember-expr.cpp49 struct NamespaceDecl;
55 struct NamespaceDecl : NamedDecl { struct
/external/clang/include/clang/Sema/
DMultiplexExternalSemaSource.h28 class NamespaceDecl; variable
213 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces) override;
DExternalSemaSource.h80 SmallVectorImpl<NamespaceDecl *> &Namespaces);
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp332 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC); in isInStdNamespace()
337 if (!isa<NamespaceDecl>(Parent)) in isInStdNamespace()
339 ND = cast<NamespaceDecl>(Parent); in isInStdNamespace()
/external/v8/tools/clang/plugins/
DChromeClassTester.cpp312 const NamespaceDecl* decl = dyn_cast<NamespaceDecl>(context); in GetNamespaceImpl()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace()
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp322 if (isa<NamespaceDecl>(SD)) in isAcceptableNestedNameSpecifier()
426 return Found.getAsSingle<NamespaceDecl>(); in isNonTypeNestedNameSpecifier()
709 if (NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(SD)) { in BuildCXXNestedNameSpecifier()
DSemaLookup.cpp1648 if (auto *ND = dyn_cast<NamespaceDecl>(D)) { in getAcceptableDeclSlow()
1846 SmallVector<NamespaceDecl*, 8> Queue; in LookupQualifiedNameInUsingDirectives()
1851 NamespaceDecl *ND = I->getNominatedNamespace()->getOriginalNamespace(); in LookupQualifiedNameInUsingDirectives()
1867 NamespaceDecl *ND = Queue.pop_back_val(); in LookupQualifiedNameInUsingDirectives()
1899 NamespaceDecl *Nom = I->getNominatedNamespace(); in LookupQualifiedNameInUsingDirectives()
3957 const llvm::MapVector<NamespaceDecl *, bool> &KnownNamespaces) { in addNamespaces() argument
4156 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C)) in NamespaceSpecifierSet()
4172 NamespaceDecl *ND = dyn_cast_or_null<NamespaceDecl>(DC); in buildContextChain()
4185 if (auto *ND = dyn_cast_or_null<NamespaceDecl>(C)) { in buildNestedNameSpecifier()
4593 SmallVector<NamespaceDecl *, 4> ExternalKnownNamespaces; in makeTypoCorrectionConsumer()
/external/clang/unittests/Sema/
DExternalSemaSourceTest.cpp123 NamespaceDecl *NewNamespace = in CorrectTypo()
124 NamespaceDecl::Create(Context, DestContext, false, Typo.getBeginLoc(), in CorrectTypo()
/external/clang/lib/Frontend/
DASTConsumers.cpp206 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp268 void VisitNamespaceDecl(NamespaceDecl *D);
1360 void ASTDeclReader::VisitNamespaceDecl(NamespaceDecl *D) { in VisitNamespaceDecl()
1386 NamespaceDecl *Anon = cast<NamespaceDecl>(Reader.GetDecl(AnonNamespace)); in VisitNamespaceDecl()
2395 if (auto *Namespace = dyn_cast<NamespaceDecl>(D)) in mergeRedeclarable()
2397 assert_cast<NamespaceDecl*>(ExistingCanon)); in mergeRedeclarable()
2571 static NamespaceDecl *getNamespace(const NestedNameSpecifier *X) { in getNamespace()
2715 if (NamespaceDecl *NamespaceX = dyn_cast<NamespaceDecl>(X)) { in isSameEntity()
2716 NamespaceDecl *NamespaceY = cast<NamespaceDecl>(Y); in isSameEntity()
2786 if (NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in getPrimaryContextForMerging()
3253 D = NamespaceDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
[all …]
/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp356 StringRef getNodeName(const NamespaceDecl &Node, in getNodeName()
440 if (const auto *ND = dyn_cast<NamespaceDecl>(Ctx)) { in matchesNodeFullFast()
/external/clang/tools/libclang/
DCXIndexDataConsumer.cpp112 bool VisitNamespaceDecl(const NamespaceDecl *D) { in VisitNamespaceDecl()
853 bool CXIndexDataConsumer::handleNamespace(const NamespaceDecl *D) { in handleNamespace()
1168 } else if (isa<TagDecl>(D) || isa<FieldDecl>(D) || isa<NamespaceDecl>(D)) { in getEntityInfo()
1207 if (const NamespaceDecl *Namespace = dyn_cast<NamespaceDecl>(D)) in getRefCursor()
DCursorVisitor.h235 bool VisitNamespaceDecl(NamespaceDecl *D);
/external/clang/lib/CodeGen/
DCGDebugInfo.h126 llvm::DenseMap<const NamespaceDecl *, llvm::TrackingMDRef> NameSpaceCache;
194 llvm::DINamespace *getOrCreateNameSpace(const NamespaceDecl *N);
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h329 const internal::VariadicDynCastAllOfMatcher<Decl, NamespaceDecl> namespaceDecl;
5063 internal::Matcher<NamespaceDecl>, InnerMatcher) { in AST_MATCHER_P() argument
5247 AST_POLYMORPHIC_SUPPORTED_TYPES(NamespaceDecl, in AST_POLYMORPHIC_MATCHER() argument
5253 else if (const auto *NSD = dyn_cast<NamespaceDecl>(&Node)) in AST_POLYMORPHIC_MATCHER()
5267 AST_MATCHER(NamespaceDecl, isAnonymous) { in AST_MATCHER() argument

123