reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  357     namespaceDecl;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  429   REGISTER_MATCHER(namespaceDecl);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  388       allOf(hasAncestor(namespaceDecl(hasName(FullOldNs)).bind("ns_decl")),
  391       IsInMovedNs, unless(hasAncestor(namespaceDecl(hasName(Prefix)))));
  410       namespaceDecl(hasName(FullOldNs), isExpansionInFileMatching(FilePattern))
  417                                    IsInMovedNs, hasParent(namespaceDecl()))
  424                         IsInMovedNs, hasParent(namespaceDecl()))
  432       hasAncestor(namespaceDecl()),
  434           isImplicit(), hasAncestor(namespaceDecl(isAnonymous())),
  504                                 hasAncestor(namespaceDecl(isAnonymous())),
  506                    hasParent(namespaceDecl()));
  515       hasGlobalStorage(), hasParent(namespaceDecl()),
  516       unless(anyOf(IsInMovedNs, hasAncestor(namespaceDecl(isAnonymous())))));
  524       hasParent(namespaceDecl()),
  526                    hasAncestor(namespaceDecl(isAnonymous())))))));
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  129       hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl()));
tools/clang/tools/extra/clang-move/Move.cpp
  510       hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl()));
  521       unless(ForwardClassDecls), unless(namespaceDecl()),
  525       hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
  526       hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl()))));
  541       hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), InOldCC);
  571   auto InAnonymousNS = hasParent(namespaceDecl(isAnonymous()));
tools/clang/tools/extra/clang-tidy/abseil/NoInternalDependenciesCheck.cpp
   28       nestedNameSpecifierLoc(loc(specifiesNamespace(namespaceDecl(
   30                                  hasParent(namespaceDecl(hasName("absl")))))),
tools/clang/tools/extra/clang-tidy/abseil/NoNamespaceCheck.cpp
   25       namespaceDecl(hasName("::absl"), unless(isInAbseilFile()))
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp
   35           hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
tools/clang/tools/extra/clang-tidy/cert/DontModifyStdNamespaceCheck.cpp
   24       namespaceDecl(unless(isExpansionInSystemHeader()),
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InterfacesGlobalInitCheck.cpp
   23                                    namespaceDecl(),       // Namespace scope.
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp
  105                        hasAncestor(namespaceDecl()), isMain(), isImplicit(),
tools/clang/tools/extra/clang-tidy/google/UnnamedNamespaceInHeaderCheck.cpp
   43     Finder->addMatcher(namespaceDecl(isAnonymous()).bind("anonymousNamespace"),
tools/clang/tools/extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
   69   Finder->addMatcher(ast_matchers::namespaceDecl().bind("namespace"), this);
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
   40     Finder->addMatcher(namespaceDecl().bind("namespace"), this);
tools/clang/tools/extra/clang-tidy/readability/StaticDefinitionInAnonymousNamespaceCheck.cpp
   25                 hasParent(namespaceDecl(isAnonymous())))
tools/clang/unittests/AST/ASTImporterTest.cpp
 1055       namespaceDecl(has(usingShadowDecl())));
 1241       FirstDeclMatcher<NamespaceDecl>().match(FromTU, namespaceDecl());
 1452   auto Pattern = namespaceDecl(has(classTemplateDecl(
 1459   Pattern = namespaceDecl(has(classTemplateSpecializationDecl(hasName("X"))));
 4001       TU, namespaceDecl());
 4778       LastDeclMatcher<NamespaceDecl>().match(ToTU, namespaceDecl(hasName("N")));
 5042       FromTU, namespaceDecl(hasName("NS")));
 5109       FromTU, namespaceDecl(hasName("X")));
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp
  195       LastDeclMatcher<NamespaceDecl>().match(get<1>(Decls), namespaceDecl());
tools/clang/unittests/ASTMatchers/ASTMatchersInternalTest.cpp
  179                       namespaceDecl(isInline(), hasName("m"))));
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
 2213   EXPECT_TRUE(notMatches("namespace N {}", namespaceDecl(isAnonymous())));
 2214   EXPECT_TRUE(matches("namespace {}", namespaceDecl(isAnonymous())));
 2264                             hasAncestor(namespaceDecl(hasName("filesystem"),
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
   45     recordDecl(hasDeclContext(namespaceDecl(hasName("M"))))));
   52     recordDecl(hasDeclContext(namespaceDecl(hasName("N"))))));
   59                       recordDecl(hasDeclContext(namespaceDecl(
   60                         hasName("M"), hasDeclContext(namespaceDecl()))))));