Home
last modified time | relevance | path

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

1234567

/external/clang/lib/StaticAnalyzer/Checkers/
DDebugCheckers.cpp123 class CallGraphViewer : public Checker< check::ASTDecl<TranslationUnitDecl> > {
125 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl()
128 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
143 class CallGraphDumper : public Checker< check::ASTDecl<TranslationUnitDecl> > {
145 void checkASTDecl(const TranslationUnitDecl *TU, AnalysisManager& mgr, in checkASTDecl()
148 CG.addToCallGraph(const_cast<TranslationUnitDecl*>(TU)); in checkASTDecl()
173 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
DPaddingChecker.cpp33 class PaddingChecker : public Checker<check::ASTDecl<TranslationUnitDecl>> {
40 void checkASTDecl(const TranslationUnitDecl *TUD, AnalysisManager &MGR, in checkASTDecl()
67 visitor.TraverseDecl(const_cast<TranslationUnitDecl *>(TUD)); in checkASTDecl()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
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()
DCloneChecker.cpp44 void checkEndOfTranslationUnit(const TranslationUnitDecl *TU,
66 void CloneChecker::checkEndOfTranslationUnit(const TranslationUnitDecl *TU, in checkEndOfTranslationUnit()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
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()
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()
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()
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()
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()
/external/llvm-project/clang/unittests/AST/
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()
DASTImporterTest.cpp2103 TranslationUnitDecl *FromTu = getTuDecl(Code, Lang_C99, "input0.c"); in TEST_P()
2118 TranslationUnitDecl *FromTu = in TEST_P()
2224 EXPECT_TRUE(MatchVerifier<TranslationUnitDecl>().match( in TEST_P()
2485 TranslationUnitDecl *FromTU = in TEST_P()
2502 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2519 TranslationUnitDecl *FromTU = in TEST_P()
2548 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2569 TranslationUnitDecl *FromTU = getTuDecl("void f();" in TEST_P()
2591 TranslationUnitDecl *ToTU = ToAST->getASTContext().getTranslationUnitDecl(); in TEST_P()
2611 TranslationUnitDecl *FromNormalTU = in TEST_P()
[all …]
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()
DASTImporterFixtures.h114 TranslationUnitDecl *TUDecl = nullptr;
147 void lazyInitSharedState(TranslationUnitDecl *ToTU);
173 TranslationUnitDecl *getTuDecl(StringRef SrcCode, TestLanguage Lang,
177 TranslationUnitDecl *getToTuDecl(StringRef ToSrcCode, TestLanguage ToLang);
/external/llvm-project/clang/include/clang/AST/
DASTImporterSharedState.h26 class TranslationUnitDecl; variable
49 ASTImporterSharedState(TranslationUnitDecl &ToTU) { in ASTImporterSharedState()
DASTImporterLookupTable.h63 ASTImporterLookupTable(TranslationUnitDecl &TU);
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DPreferRegisterOverUnsignedCheck.cpp45 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check()
50 if (isa<TranslationUnitDecl>(Namespace->getDeclContext()) && in check()
/external/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp511 llvm::StringRef NewName, Decl *TranslationUnitDecl) { in createRenameAtomicChanges() argument
512 RenameLocFinder Finder(USRs, TranslationUnitDecl->getASTContext()); in createRenameAtomicChanges()
513 Finder.TraverseDecl(TranslationUnitDecl); in createRenameAtomicChanges()
516 TranslationUnitDecl->getASTContext().getSourceManager(); in createRenameAtomicChanges()
541 if (!llvm::isa<clang::TranslationUnitDecl>( in createRenameAtomicChanges()
559 SM, TranslationUnitDecl->getASTContext().getLangOpts()); in createRenameAtomicChanges()
/external/llvm-project/clang/unittests/Tooling/
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()
DLexicallyOrderedRecursiveASTVisitorTest.cpp53 bool VisitTranslationUnitDecl(TranslationUnitDecl *TU) { in VisitTranslationUnitDecl()
77 if (isa<TranslationUnitDecl>(D)) { in VisitNamedDecl()
/external/llvm-project/clang/include/clang/CrossTU/
DCrossTranslationUnit.h35 class TranslationUnitDecl; variable
200 void lazyInitImporterSharedSt(TranslationUnitDecl *ToTU);
214 llvm::DenseMap<TranslationUnitDecl *, std::unique_ptr<ASTImporter>>;
/external/llvm-project/clang/unittests/CrossTU/
DCrossTranslationUnitTest.cpp33 auto FindFInTU = [](const TranslationUnitDecl *TU) { in HandleTranslationUnit()
43 const TranslationUnitDecl *TU = Ctx.getTranslationUnitDecl(); in HandleTranslationUnit()
103 TranslationUnitDecl *OrigTU = in HandleTranslationUnit()
/external/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
DUSRLocFinder.h39 llvm::StringRef NewName, Decl *TranslationUnitDecl);
/external/llvm-project/clang/utils/
Dmake-ast-dump-check.sh62 /TranslationUnitDecl/ {
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DNoRecursionCheck.cpp258 const auto *TU = Result.Nodes.getNodeAs<TranslationUnitDecl>("TUDecl"); in check()
260 CG.addToCallGraph(const_cast<TranslationUnitDecl *>(TU)); in check()

1234567