Home
last modified time | relevance | path

Searched refs:Namespaces (Results 1 – 25 of 60) sorted by relevance

123

/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DConcatNestedNamespacesCheck.cpp102 bool IsFirstNS = IsChild || !Namespaces.empty(); in unsupportedNamespace()
126 diag(Namespaces.front().front()->getBeginLoc(), in reportDiagnostic()
130 Fronts.reserve(Namespaces.size() - 1U); in reportDiagnostic()
132 Backs.reserve(Namespaces.size()); in reportDiagnostic()
134 for (const NS &ND : Namespaces) { in reportDiagnostic()
150 for (const NS &NS : Namespaces) { in reportDiagnostic()
152 if (&NS != &Namespaces.back()) // compare address directly in reportDiagnostic()
159 Namespaces.back().getReplacedNamespaceFrontRange(), ConcatNameSpace); in reportDiagnostic()
160 if (LastRBrace != Namespaces.back().getDefaultNamespaceBackRange()) in reportDiagnostic()
179 Namespaces.push_back(NS{}); in check()
[all …]
H A DConcatNestedNamespacesCheck.h49 NamespaceContextVec Namespaces; variable
/llvm-project/clang/test/APINotes/Inputs/Headers/
H A DNamespaces.apinotes2 Name: Namespaces
14 Namespaces:
30 Namespaces:
47 Namespaces:
H A Dmodule.modulemap49 module Namespaces {
50 header "Namespaces.h"
/llvm-project/clang-tools-extra/clang-doc/
H A DSerialize.cpp30 populateParentNamespaces(llvm::SmallVector<Reference, 4> &Namespaces,
49 getInfoRelativePath(const llvm::SmallVectorImpl<doc::Reference> &Namespaces) { in getInfoRelativePath() argument
51 for (auto R = Namespaces.rbegin(), E = Namespaces.rend(); R != E; ++R) in getInfoRelativePath()
57 llvm::SmallVector<Reference, 4> Namespaces; in getInfoRelativePath() local
62 populateParentNamespaces(Namespaces, D, B); in getInfoRelativePath()
63 return getInfoRelativePath(Namespaces); in getInfoRelativePath()
283 Scope.Namespaces.emplace_back(Info.USR, Info.Name, InfoType::IT_namespace, in InsertChild()
456 populateParentNamespaces(llvm::SmallVector<Reference, 4> &Namespaces, in populateParentNamespaces()
467 Namespaces in populateParentNamespaces()
444 populateParentNamespaces(llvm::SmallVector<Reference,4> & Namespaces,const T * D,bool & IsInAnonymousNamespace) populateParentNamespaces() argument
[all...]
H A DRepresentation.cpp229 reduceChildren(Children.Namespaces, std::move(Other.Children.Namespaces)); in merge()
388 llvm::sort(Namespaces.begin(), Namespaces.end());
/llvm-project/clang/lib/Tooling/Refactoring/
H A DLookup.cpp31 llvm::SmallVector<const NamespaceDecl *, 4> Namespaces; in getAllNamedNamespaces() local
41 Namespaces.push_back(cast<NamespaceDecl>(Context)); in getAllNamedNamespaces()
42 return Namespaces; in getAllNamedNamespaces()
/llvm-project/clang-tools-extra/unittests/clang-doc/
H A DClangDocTest.cpp161 ASSERT_EQ(Expected->Children.Namespaces.size(), in CheckNamespaceInfo()
162 Actual->Children.Namespaces.size()); in CheckNamespaceInfo()
163 for (size_t Idx = 0; Idx < Actual->Children.Namespaces.size(); ++Idx) in CheckNamespaceInfo()
164 CheckReference(Expected->Children.Namespaces[Idx], in CheckNamespaceInfo()
165 Actual->Children.Namespaces[Idx]); in CheckNamespaceInfo()
H A DMergeTest.cpp21 One.Children.Namespaces.emplace_back(NonEmptySID, "ChildNamespace", in TEST()
36 Two.Children.Namespaces.emplace_back(EmptySID, "OtherChildNamespace", in TEST()
53 Expected->Children.Namespaces.emplace_back(NonEmptySID, "ChildNamespace", in TEST()
57 Expected->Children.Namespaces.emplace_back(EmptySID, "OtherChildNamespace", in TEST()
H A DHTMLGeneratorTest.cpp46 I.Children.Namespaces.emplace_back(EmptySID, "ChildNamespace", in TEST()
76 <h2 id="Namespaces">Namespaces</h2> in TEST()
108 <a href="#Namespaces">Namespaces</a> in TEST()
/llvm-project/llvm/utils/TableGen/
H A DDirectiveEmitter.cpp
/llvm-project/clang/test/APINotes/
H A Dnamespaces.cpp18 #import <Namespaces.h>
21 // CHECK-TYPEDEF-IN-NAMESPACE-NEXT: TypedefDecl {{.+}} imported in Namespaces my_typedef 'int'
25 // CHECK-USING-DECL-IN-NAMESPACE-NEXT: TypeAliasDecl {{.+}} imported in Namespaces my_using_decl 'int'
29 // CHECK-GLOBAL-IN-NAMESPACE-NEXT: VarDecl {{.+}} imported in Namespaces varInNamespace 'int' static cinit
34 // CHECK-FUNC-IN-NAMESPACE-NEXT: FunctionDecl {{.+}} imported in Namespaces funcInNamespace 'void ()'
38 // CHECK-STRUCT-IN-NAMESPACE-NEXT: CXXRecordDecl {{.+}} imported in Namespaces <undeserialized declarations> struct char_box
42 // CHECK-GLOBAL-IN-NESTED-NAMESPACE-NEXT: VarDecl {{.+}} imported in Namespaces varInNestedNamespace 'int' static cinit
47 // CHECK-ANOTHER-GLOBAL-IN-NESTED-NAMESPACE-NEXT: VarDecl {{.+}} imported in Namespaces varInNestedNamespace 'int' static cinit
52 // CHECK-FUNC-IN-NESTED-NAMESPACE-NEXT: FunctionDecl {{.+}} imported in Namespaces funcInNestedNamespace 'void (int)'
57 // CHECK-STRUCT-IN-NESTED-NAMESPACE-NEXT: CXXRecordDecl {{.+}} imported in Namespaces <undeserialize
[all...]
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/google/
H A Dglobal-names-in-headers.rst10 https://google.github.io/styleguide/cppguide.html#Namespaces.
H A Dbuild-namespaces.rst11 https://google.github.io/styleguide/cppguide.html#Namespaces
H A Dbuild-using-namespace.rst9 `Google C++ Style Guide <https://google.github.io/styleguide/cppguide.html#Namespaces>`_:
/llvm-project/llvm/include/llvm/DWARFLinker/Classic/
H A DDWARFLinkerCompileUnit.h261 const std::vector<AccelInfo> &getNamespaces() const { return Namespaces; } in getNamespaces()
317 std::vector<AccelInfo> Namespaces; variable
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/llvm/
H A Dnamespace-comment.rst13 https://google.github.io/styleguide/cppguide.html#Namespaces
/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h99 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer()
311 NamespaceSpecifierSet Namespaces; variable
H A DExternalSemaSource.h78 SmallVectorImpl<NamespaceDecl *> &Namespaces);
H A DMultiplexExternalSemaSource.h224 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces) override;
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/llvmlibc/
H A Dimplementation-in-namespace.rst17 // Namespaces within LIBC_NAMESPACE_DECL namespace are allowed.
/llvm-project/clang-tools-extra/clang-move/
H A DMove.cpp354 std::vector<std::string> Namespaces; in getNamespaces() local
362 Namespaces.push_back(ND->getName().str()); in getNamespaces()
364 std::reverse(Namespaces.begin(), Namespaces.end()); in getNamespaces()
365 return Namespaces; in getNamespaces()
/llvm-project/clang/lib/Sema/
H A DMultiplexExternalSemaSource.cpp245 SmallVectorImpl<NamespaceDecl*> &Namespaces){ in LookupUnqualified()
247 Sources[i]->ReadKnownNamespaces(Namespaces); in LookupUnqualified()
226 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl * > & Namespaces) ReadKnownNamespaces() argument
H A DSemaLookup.cpp2089 // Namespaces are a bit of a special case: we expect there to be a lot of in getAcceptableDeclSlow()
2870 Sema::AssociatedNamespaceSet &Namespaces,
2872 : S(S), Namespaces(Namespaces), Classes(Classes),
2882 Sema::AssociatedNamespaceSet &Namespaces;
2895 // enumeration, add the associated namespaces to \param Namespaces as described in CollectEnclosingNamespace()
2897 static void CollectEnclosingNamespace(Sema::AssociatedNamespaceSet &Namespaces, in CollectEnclosingNamespace()
2917 // Actually it is fine to always do `Namespaces.insert(Ctx);` simply. But it in addAssociatedClassesAndNamespaces()
2918 // may cause more allocations in Namespaces and more unnecessary lookups. So in addAssociatedClassesAndNamespaces()
2965 Namespaces in addAssociatedClassesAndNamespaces()
2871 Sema::AssociatedNamespaceSet &Namespaces; global() member
2886 CollectEnclosingNamespace(Sema::AssociatedNamespaceSet & Namespaces,DeclContext * Ctx) CollectEnclosingNamespace() argument
[all...]
/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFLinkerCompileUnit.cpp190 Namespaces.emplace_back(Name, Die); in addNamespaceAccelerator()

123