| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 27 NamespaceDecl::Create(AST, AST.getTranslationUnitDecl(), false, in InitializeSema() 30 AST.getTranslationUnitDecl()->addDecl(HLSLNamespace); in InitializeSema() 40 AST, AST.getTranslationUnitDecl(), SourceLocation(), SourceLocation(), in InitializeSema() 42 AST.getTranslationUnitDecl()); in InitializeSema() 44 AST.getTranslationUnitDecl()->addDecl(UsingDecl); in InitializeSema()
|
| H A D | SemaModule.cpp | 92 auto *TU = Context.getTranslationUnitDecl(); in ActOnGlobalModuleFragmentDecl() 142 auto *TU = Context.getTranslationUnitDecl(); in HandleStartOfHeaderUnit() 339 auto *TU = Context.getTranslationUnitDecl(); in ActOnModuleDecl() 418 auto *TU = Context.getTranslationUnitDecl(); in ActOnPrivateModuleFragmentDecl() 600 TranslationUnitDecl *TU = getASTContext().getTranslationUnitDecl(); in BuildModuleInclude() 693 TranslationUnitDecl *TU = getASTContext().getTranslationUnitDecl(); in createImplicitModuleImportForErrorRecovery()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterFixtures.cpp | 47 TUDecl(Unit->getASTContext().getTranslationUnitDecl()), Creator(C), in TU() 127 lazyInitSharedState(ToAST->getASTContext().getTranslationUnitDecl()); in lazyInitToAST() 135 return E.TUDecl == From->getTranslationUnitDecl(); in findFromTU() 161 FromCtx.getTranslationUnitDecl()->localUncachedLookup(ImportDeclName, in getImportedDecl() 192 return ToAST->getASTContext().getTranslationUnitDecl(); in getToTuDecl() 228 Tu.Unit->getASTContext().getTranslationUnitDecl()->dump(); in ~ASTImporterTestBase() 233 ToAST->getASTContext().getTranslationUnitDecl()->dump(); in ~ASTImporterTestBase()
|
| H A D | ASTImporterGenericRedeclTest.cpp | 168 auto *ToTU = Prev->getTranslationUnitDecl(); in CheckPreviousDecl() 188 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() 205 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TypedTest_DefinitionShouldBeImportedAsADefinition() 224 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedPrototype() 246 Decl *ToTU = ImportedProto->getTranslationUnitDecl(); in TypedTest_ImportDefinitionAfterImportedPrototype() 268 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeAfterImportedDefinition() 291 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportPrototypes() 314 Decl *ToTU = Imported0->getTranslationUnitDecl(); in TypedTest_ImportDefinitions() 337 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportDefinitionThenPrototype() 362 Decl *ToTU = ImportedDef->getTranslationUnitDecl(); in TypedTest_ImportPrototypeThenDefinition() [all …]
|
| H A D | ASTImporterTest.cpp | 125 auto *ToTU = Imported->getTranslationUnitDecl(); in TEST_P() 142 auto *ToTU = To->getTranslationUnitDecl(); in TEST_P() 1339 auto TU = D->getTranslationUnitDecl(); in TEST_P() 1365 auto TU = D->getTranslationUnitDecl(); in TEST_P() 1393 auto TU = D->getTranslationUnitDecl(); in TEST_P() 2035 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TEST_P() 2053 Decl *ToTU = ImportedD->getTranslationUnitDecl(); in TEST_P() 3183 auto *ToTU = ToField->getTranslationUnitDecl(); in TEST_P() 3990 Decl *ToTu = ToX->getTranslationUnitDecl(); in TEST_P() 6746 EXPECT_EQ(To->getTranslationUnitDecl(), in checkImported() [all …]
|
| H A D | ExternalASTSourceTest.cpp | 33 getCompilerInstance().getASTContext().getTranslationUnitDecl() in ExecuteAction()
|
| H A D | EvaluateAsRValueTest.cpp | 72 Evaluator.TraverseDecl(Ctx.getTranslationUnitDecl()); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang/unittests/Introspection/ |
| H A D | IntrospectionTest.cpp | 141 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 194 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 370 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 432 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 487 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 524 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 560 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 597 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 635 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() 671 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 51 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences() 141 USRs, NewQualifiedName, Context.getASTContext().getTranslationUnitDecl()); in createSourceReplacements() 210 USRs, PrevName, Context.getTranslationUnitDecl()); in HandleOneRename() 258 USRList[I], NewNames[I], Context.getTranslationUnitDecl()); in HandleTranslationUnit()
|
| H A D | USRFinder.cpp | 85 for (auto *CurrDecl : Context.getTranslationUnitDecl()->decls()) { in getNamedDeclAt() 131 Visitor.TraverseDecl(Context.getTranslationUnitDecl()); in getNamedDeclFor()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTMerge.cpp | 42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction() 60 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
|
| H A D | ASTConsumers.cpp | 45 TranslationUnitDecl *D = Context.getTranslationUnitDecl(); in HandleTranslationUnit() 143 TraverseDecl(Context.getTranslationUnitDecl()); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TestTU.cpp | 211 Ctx.setTraversalScope({Ctx.getTranslationUnitDecl()}); in TraverseHeadersToo() 226 const DeclContext *Scope = Ctx.getTranslationUnitDecl(); in findDecl() 249 Visitor.TraverseDecl(AST.getASTContext().getTranslationUnitDecl()); in findDecl()
|
| H A D | PrintASTTests.cpp | 51 V.TraverseDecl(AST.getASTContext().getTranslationUnitDecl()); in TEST_P()
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 155 LastPTU.TUPart = C.getTranslationUnitDecl(); in ParseOrWrapTopLevelDecl() 184 PartialTranslationUnit MostRecentPTU = {C.getTranslationUnitDecl(), in ParseOrWrapTopLevelDecl() 289 if (D->getTranslationUnitDecl() == MostRecentTU) { in CleanUpPTU()
|
| /llvm-project-15.0.7/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCDeclVendor.cpp | 123 m_decl_vendor.m_ast_ctx.getASTContext().getTranslationUnitDecl(); in StartTranslationUnit() 165 ast_ctx, ast_ctx.getTranslationUnitDecl(), clang::SourceLocation(), in GetDeclForISA() 175 ast_ctx.getTranslationUnitDecl()->addDecl(new_iface_decl); in GetDeclForISA() 552 ast_ctx.getTranslationUnitDecl()->lookup(decl_name); in FindDecls()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CloneChecker.cpp | 104 Mgr.getAnalysisDeclContext(ACtx.getTranslationUnitDecl())); in makeLocation() 164 Mgr.getAnalysisDeclContext(ACtx.getTranslationUnitDecl()); in reportSuspiciousClones()
|
| H A D | ErrnoModeling.cpp | 79 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 100 llvm::append_range(LookupRes, ACtx.getTranslationUnitDecl()->lookup(&II)); in getErrnoFunc()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransEmptyStatementsAndDealloc.cpp | 196 DeclContext *DC = Ctx.getTranslationUnitDecl(); in cleanupDeallocOrFinalize() 241 EmptyStatementsRemover(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in removeEmptyStatementsAndDeallocFinalize()
|
| H A D | TransUnusedInitDelegate.cpp | 76 trans.TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in rewriteUnusedInitDelegate()
|
| H A D | TransARCAssign.cpp | 76 assignCheck.TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in makeAssignARCSafe()
|
| H A D | TransAPIUses.cpp | 106 APIChecker(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in checkAPIUses()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
| H A D | TraversalScope.cpp | 43 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/ |
| H A D | CloneDetectionTest.cpp | 60 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
|
| /llvm-project-15.0.7/lldb/unittests/TestingSupport/Symbol/ |
| H A D | ClangTestUtils.h | 30 return ast.CreateRecordType(ast.getASTContext().getTranslationUnitDecl(), in createRecord()
|