Home
last modified time | relevance | path

Searched refs:TranslationUnitDecl (Results 1 – 25 of 120) sorted by relevance

12345

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDebugCheckers.cpp211 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 DErrnoModeling.cpp46 : 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 DPaddingChecker.cpp33 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 DCloneChecker.cpp44 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 DUncountedLambdaCapturesChecker.cpp23 : 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 DNoUncountedMembersChecker.cpp29 : 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 DRefCntblBaseVirtualDtorChecker.cpp23 : 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 DUncountedCallArgsChecker.cpp29 : 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 DUncountedLocalVarsChecker.cpp129 : 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 DPartialTranslationUnit.h25 class TranslationUnitDecl; variable
30 TranslationUnitDecl *TUPart = nullptr;
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterVisibilityTest.cpp123 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 DASTImporterTest.cpp2329 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 DASTImporterFixtures.cpp110 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 DASTImporterFixtures.h114 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 DASTImporterSharedState.h24 class TranslationUnitDecl; variable
50 ASTImporterSharedState(TranslationUnitDecl &ToTU) { in ASTImporterSharedState()
H A DASTImporterLookupTable.h62 ASTImporterLookupTable(TranslationUnitDecl &TU);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferRegisterOverUnsignedCheck.cpp45 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 DUSRLocFinder.cpp529 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 DASTSelectionTest.cpp44 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 DLexicallyOrderedRecursiveASTVisitorTest.cpp53 bool VisitTranslationUnitDecl(TranslationUnitDecl *TU) { in VisitTranslationUnitDecl()
77 if (isa<TranslationUnitDecl>(D)) { in VisitNamedDecl()
/llvm-project-15.0.7/clang/include/clang/CrossTU/
H A DCrossTranslationUnit.h36 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 DUSRLocFinder.h39 llvm::StringRef NewName, Decl *TranslationUnitDecl);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNoRecursionCheck.cpp258 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 Dmake-ast-dump-check.sh62 /TranslationUnitDecl/ {
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/
H A DCTTestTidyModule.cpp33 auto S = Result.Nodes.getNodeAs<TranslationUnitDecl>("tu"); in check()

12345