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

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  174     translationUnitDecl;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  500   REGISTER_MATCHER(translationUnitDecl);
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()));
  525       hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))),
  526       hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl()))));
  541       hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), InOldCC);
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp
   35           hasParent(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/readability/SimplifyBooleanExprCheck.cpp
  507   Finder->addMatcher(translationUnitDecl().bind("top"), this);
tools/clang/unittests/AST/ASTImporterTest.cpp
  116         translationUnitDecl(
  816           unless(hasAncestor(translationUnitDecl(has(typeAliasDecl()))))));
  831           unless(hasAncestor(translationUnitDecl(has(varDecl(
 1104       functionTemplateDecl(hasAncestor(translationUnitDecl(
 1110       classTemplateDecl(hasAncestor(translationUnitDecl(
 1406       translationUnitDecl(unless(has(classTemplateSpecializationDecl())));
 1414   Pattern = translationUnitDecl(has(classTemplateDecl(
 1570   auto Pattern = translationUnitDecl(has(classTemplateDecl(
 1614   auto Pattern = translationUnitDecl(has(classTemplateDecl(
 2416       ToTU, translationUnitDecl(hasDescendant(
 4059   auto Pattern = translationUnitDecl(
 4084   auto Pattern = translationUnitDecl(unless(has(Instantiation)));
 4108   auto Pattern = translationUnitDecl(has(Specialization));
 4130                            hasParent(translationUnitDecl()));
 4396                                         hasParent(translationUnitDecl()))));
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()))))));