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

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  261   REGISTER_MATCHER(hasDeclContext);
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  129       hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl()));
  142   auto ExternCMatcher = hasDeclContext(linkageSpecDecl());
  183                                           hasDeclContext(linkageSpecDecl())));
  194       anyOf(hasDeclContext(enumDecl(HasNSOrTUCtxMatcher)), ExternCMatcher));
tools/clang/tools/extra/clang-move/Move.cpp
  510       hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl()));
  526       hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl()))));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InterfacesGlobalInitCheck.cpp
   22               hasDeclContext(anyOf(translationUnitDecl(), // Global scope.
tools/clang/tools/extra/clang-tidy/google/GlobalNamesInHeadersCheck.cpp
   42                           hasDeclContext(translationUnitDecl()))
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
  160                           hasDeclContext(
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  215       hasDeclContext(recordDecl(hasStdContainerName(), isFromStdNamespace())));
tools/clang/tools/extra/clang-tidy/objc/MissingHashCheck.cpp
   47           hasDeclContext(objcImplementationDecl(
tools/clang/tools/extra/clang-tidy/objc/SuperSelfCheck.cpp
   86                           hasDeclContext(objcImplementationDecl(hasInterface(
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  103     Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl()))));
  105     Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl()))));
  109             hasDeclContext(decl(hasDeclContext(translationUnitDecl()))))));
  109             hasDeclContext(decl(hasDeclContext(translationUnitDecl()))))));
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()))))));
   62   EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl()))));