Home
last modified time | relevance | path

Searched refs:translationUnitDecl (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvmlibc/
H A DImplementationInNamespaceCheck.cpp22 decl(hasParent(translationUnitDecl()), unless(linkageSpecDecl())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/
H A DCTTestTidyModule.cpp29 Finder->addMatcher(translationUnitDecl().bind("tu"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInterfacesGlobalInitCheck.cpp22 hasDeclContext(anyOf(translationUnitDecl(), // Global scope. in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DGlobalNamesInHeadersCheck.cpp43 hasDeclContext(translationUnitDecl())) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardDeclarationNamespaceCheck.cpp35 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DMove.cpp510 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers()
525 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), in registerMatchers()
526 hasDeclContext(decl(anyOf(namespaceDecl(), translationUnitDecl())))); in registerMatchers()
541 hasParent(decl(anyOf(namespaceDecl(), translationUnitDecl()))), InOldCC); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DDeprecatedHeadersCheck.cpp102 Finder->addMatcher(ast_matchers::translationUnitDecl().bind("TU"), this); in registerMatchers()
H A DMacroToEnumCheck.cpp530 auto TopLevelDecl = hasParent(translationUnitDecl()); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNoRecursionCheck.cpp199 Finder->addMatcher(translationUnitDecl().bind("TUDecl"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp129 hasDeclContext(anyOf(namespaceDecl(), translationUnitDecl())); in registerMatchers()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp643 unless(hasAncestor(translationUnitDecl(has(varDecl( in TEST_P()
996 functionTemplateDecl(hasAncestor(translationUnitDecl( in TEST_P()
1001 classTemplateDecl(hasAncestor(translationUnitDecl( in TEST_P()
1432 Pattern = translationUnitDecl(has(classTemplateDecl( in TEST_P()
1588 auto Pattern = translationUnitDecl(has(classTemplateDecl( in TEST_P()
1632 auto Pattern = translationUnitDecl(has(classTemplateDecl( in TEST_P()
2436 ToTU, translationUnitDecl(hasDescendant( in TEST_P()
4342 auto Pattern = translationUnitDecl( in TEST_P()
4367 auto Pattern = translationUnitDecl(unless(has(Instantiation))); in TEST_P()
4391 auto Pattern = translationUnitDecl(has(Specialization)); in TEST_P()
[all …]
H A DASTImporterFixtures.h299 translationUnitDecl( in testImport()
H A DASTTraverserTest.cpp1838 hasParent(translationUnitDecl())) in TEST()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp121 Code, varDecl(hasName("MyVar1"), hasDeclContext(translationUnitDecl())))); in TEST_P()
123 Code, varDecl(hasName("MyVar2"), hasDeclContext(translationUnitDecl())))); in TEST_P()
127 hasDeclContext(decl(hasDeclContext(translationUnitDecl())))))); in TEST_P()
H A DASTMatchersNarrowingTest.cpp2213 translationUnitDecl(has(cxxRecordDecl(hasName("mem"))), in TEST()
2218 translationUnitDecl(has(cxxRecordDecl(hasName("mem")).bind("templMem")), in TEST()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp569 REGISTER_MATCHER(translationUnitDecl); in RegistryMaps()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp681 Finder->addMatcher(translationUnitDecl(), this); in registerMatchers()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp727 translationUnitDecl; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h183 translationUnitDecl;