| /llvm-project/clang-tools-extra/clang-tidy/modernize/ |
| H A D | ConcatNestedNamespacesCheck.cpp | 102 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 D | ConcatNestedNamespacesCheck.h | 49 NamespaceContextVec Namespaces; variable
|
| /llvm-project/clang/test/APINotes/Inputs/Headers/ |
| H A D | Namespaces.apinotes | 2 Name: Namespaces 14 Namespaces: 30 Namespaces: 47 Namespaces:
|
| H A D | module.modulemap | 49 module Namespaces { 50 header "Namespaces.h"
|
| /llvm-project/clang-tools-extra/clang-doc/ |
| H A D | Serialize.cpp | 30 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 D | Representation.cpp | 229 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 D | Lookup.cpp | 31 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 D | ClangDocTest.cpp | 161 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 D | MergeTest.cpp | 21 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 D | HTMLGeneratorTest.cpp | 46 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 D | DirectiveEmitter.cpp | |
| /llvm-project/clang/test/APINotes/ |
| H A D | namespaces.cpp | 18 #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 D | global-names-in-headers.rst | 10 https://google.github.io/styleguide/cppguide.html#Namespaces.
|
| H A D | build-namespaces.rst | 11 https://google.github.io/styleguide/cppguide.html#Namespaces
|
| H A D | build-using-namespace.rst | 9 `Google C++ Style Guide <https://google.github.io/styleguide/cppguide.html#Namespaces>`_:
|
| /llvm-project/llvm/include/llvm/DWARFLinker/Classic/ |
| H A D | DWARFLinkerCompileUnit.h | 261 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 D | namespace-comment.rst | 13 https://google.github.io/styleguide/cppguide.html#Namespaces
|
| /llvm-project/clang/include/clang/Sema/ |
| H A D | SemaInternal.h | 99 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), in TypoCorrectionConsumer() 311 NamespaceSpecifierSet Namespaces; variable
|
| H A D | ExternalSemaSource.h | 78 SmallVectorImpl<NamespaceDecl *> &Namespaces);
|
| H A D | MultiplexExternalSemaSource.h | 224 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl*> &Namespaces) override;
|
| /llvm-project/clang-tools-extra/docs/clang-tidy/checks/llvmlibc/ |
| H A D | implementation-in-namespace.rst | 17 // Namespaces within LIBC_NAMESPACE_DECL namespace are allowed.
|
| /llvm-project/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 354 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 D | MultiplexExternalSemaSource.cpp | 245 SmallVectorImpl<NamespaceDecl*> &Namespaces){ in LookupUnqualified() 247 Sources[i]->ReadKnownNamespaces(Namespaces); in LookupUnqualified() 226 ReadKnownNamespaces(SmallVectorImpl<NamespaceDecl * > & Namespaces) ReadKnownNamespaces() argument
|
| H A D | SemaLookup.cpp | 2089 // 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 D | DWARFLinkerCompileUnit.cpp | 190 Namespaces.emplace_back(Name, Die); in addNamespaceAccelerator()
|