| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DebugCheckers.cpp | 211 class CallGraphViewer : public Checker< check::ASTDecl<TranslationUnitDecl> > { 213 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl() 216 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl() 235 class CallGraphDumper : public Checker< check::ASTDecl<TranslationUnitDecl> > { 237 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl() 240 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl() 268 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
|
| H A D | ErrnoModeling.cpp | 46 : public Checker<check::ASTDecl<TranslationUnitDecl>, check::BeginFunction, 49 void checkASTDecl(const TranslationUnitDecl *D, AnalysisManager &Mgr, 117 void ErrnoModeling::checkASTDecl(const TranslationUnitDecl *D, in checkASTDecl()
|
| H A D | PaddingChecker.cpp | 33 class PaddingChecker : public Checker<check::ASTDecl<TranslationUnitDecl>> { 41 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 65 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| H A D | CloneChecker.cpp | 44 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, 66 void CloneChecker::checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | UncountedLambdaCapturesChecker.cpp | 23 : public Checker<check::ASTDecl<TranslationUnitDecl>> { 30 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 54 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| H A D | NoUncountedMembersChecker.cpp | 29 : public Checker<check::ASTDecl<TranslationUnitDecl>> { 41 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 65 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| H A D | RefCntblBaseVirtualDtorChecker.cpp | 23 : public Checker<check::ASTDecl<TranslationUnitDecl>> { 34 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 58 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| H A D | UncountedCallArgsChecker.cpp | 29 : public Checker<check::ASTDecl<TranslationUnitDecl>> { 37 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 61 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| H A D | UncountedLocalVarsChecker.cpp | 129 : public Checker<check::ASTDecl<TranslationUnitDecl>> { 137 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl() 161 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Interpreter/ |
| H A D | PartialTranslationUnit.h | 25 class TranslationUnitDecl; variable 30 TranslationUnitDecl *TUPart = nullptr;
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterVisibilityTest.cpp | 123 TranslationUnitDecl *FromTu = getTuDecl(Code, Lang_CXX14, "input0.cc"); in TypedTest_ImportChain() 245 TranslationUnitDecl *ToTu = getToTuDecl(getCode0(), Lang_CXX14); in TypedTest_ImportAfter() 246 TranslationUnitDecl *FromTu = in TypedTest_ImportAfter() 265 TranslationUnitDecl *FromTu0 = in TypedTest_ImportAfterImport() 267 TranslationUnitDecl *FromTu1 = in TypedTest_ImportAfterImport() 283 TranslationUnitDecl *ToTu = getToTuDecl(getCode0(), Lang_CXX14); in TypedTest_ImportAfterWithMerge() 284 TranslationUnitDecl *FromTu = in TypedTest_ImportAfterWithMerge() 305 TranslationUnitDecl *FromTu0 = in TypedTest_ImportAfterImportWithMerge() 307 TranslationUnitDecl *FromTu1 = in TypedTest_ImportAfterImportWithMerge()
|
| H A D | ASTImporterTest.cpp | 2329 TranslationUnitDecl *FromTu = in TEST_P() 2696 TranslationUnitDecl *FromTU = in TEST_P() 2730 TranslationUnitDecl *FromTU = in TEST_P() 2822 TranslationUnitDecl *FromNormalTU = in TEST_P() 2826 TranslationUnitDecl *FromFriendTU = in TEST_P() 4908 TranslationUnitDecl *ToTU = in TEST_P() 4943 TranslationUnitDecl *ToTU = in TEST_P() 4973 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() 4993 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() 5020 TranslationUnitDecl *ToTU = getToTuDecl( in TEST_P() [all …]
|
| H A D | ASTImporterFixtures.cpp | 110 void ASTImporterTestBase::lazyInitSharedState(TranslationUnitDecl *ToTU) { in lazyInitSharedState() 173 TranslationUnitDecl *ASTImporterTestBase::getTuDecl(StringRef SrcCode, in getTuDecl() 187 TranslationUnitDecl *ASTImporterTestBase::getToTuDecl(StringRef ToSrcCode, in getToTuDecl()
|
| H A D | ASTImporterFixtures.h | 114 TranslationUnitDecl *TUDecl = nullptr; 147 void lazyInitSharedState(TranslationUnitDecl *ToTU); 173 TranslationUnitDecl *getTuDecl(StringRef SrcCode, TestLanguage Lang, 177 TranslationUnitDecl *getToTuDecl(StringRef ToSrcCode, TestLanguage ToLang);
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTImporterSharedState.h | 24 class TranslationUnitDecl; variable 50 ASTImporterSharedState(TranslationUnitDecl &ToTU) { in ASTImporterSharedState()
|
| H A D | ASTImporterLookupTable.h | 62 ASTImporterLookupTable(TranslationUnitDecl &TU);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferRegisterOverUnsignedCheck.cpp | 45 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check() 50 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 529 llvm::StringRef NewName, Decl *TranslationUnitDecl) { in createRenameAtomicChanges() argument 530 RenameLocFinder Finder(USRs, TranslationUnitDecl->getASTContext()); in createRenameAtomicChanges() 531 Finder.TraverseDecl(TranslationUnitDecl); in createRenameAtomicChanges() 534 TranslationUnitDecl->getASTContext().getSourceManager(); in createRenameAtomicChanges() 559 if (!llvm::isa<clang::TranslationUnitDecl>( in createRenameAtomicChanges() 577 SM, TranslationUnitDecl->getASTContext().getLangOpts()); in createRenameAtomicChanges()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ASTSelectionTest.cpp | 44 bool VisitTranslationUnitDecl(const TranslationUnitDecl *TU) { in VisitTranslationUnitDecl() 160 checkNode<TranslationUnitDecl>(*Node, SourceSelectionKind::None, in TEST() 729 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 750 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 804 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 832 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 862 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 890 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 939 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST() 963 isa<TranslationUnitDecl>(Parents[0].get().Node.get<Decl>())); in TEST()
|
| H A D | LexicallyOrderedRecursiveASTVisitorTest.cpp | 53 bool VisitTranslationUnitDecl(TranslationUnitDecl *TU) { in VisitTranslationUnitDecl() 77 if (isa<TranslationUnitDecl>(D)) { in VisitNamedDecl()
|
| /llvm-project-15.0.7/clang/include/clang/CrossTU/ |
| H A D | CrossTranslationUnit.h | 36 class TranslationUnitDecl; variable 209 void lazyInitImporterSharedSt(TranslationUnitDecl *ToTU); 223 llvm::DenseMap<TranslationUnitDecl *, std::unique_ptr<ASTImporter>>;
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.h | 39 llvm::StringRef NewName, Decl *TranslationUnitDecl);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | NoRecursionCheck.cpp | 258 const auto *TU = Result.Nodes.getNodeAs<TranslationUnitDecl>("TUDecl"); in check() 260 CG.addToCallGraph(const_cast<TranslationUnitDecl *>(TU)); in check()
|
| /llvm-project-15.0.7/clang/utils/ |
| H A D | make-ast-dump-check.sh | 62 /TranslationUnitDecl/ {
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/ |
| H A D | CTTestTidyModule.cpp | 33 auto S = Result.Nodes.getNodeAs<TranslationUnitDecl>("tu"); in check()
|