Home
last modified time | relevance | path

Searched refs:getTranslationUnitDecl (Results 1 – 25 of 129) sorted by relevance

123456

/llvm-project-15.0.7/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp27 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 DSemaModule.cpp92 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 DASTImporterFixtures.cpp47 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 DASTImporterGenericRedeclTest.cpp168 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 DASTImporterTest.cpp125 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 DExternalASTSourceTest.cpp33 getCompilerInstance().getASTContext().getTranslationUnitDecl() in ExecuteAction()
H A DEvaluateAsRValueTest.cpp72 Evaluator.TraverseDecl(Ctx.getTranslationUnitDecl()); in HandleTranslationUnit()
/llvm-project-15.0.7/clang/unittests/Introspection/
H A DIntrospectionTest.cpp141 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 DRenamingAction.cpp51 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 DUSRFinder.cpp85 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 DASTMerge.cpp42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction()
60 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
H A DASTConsumers.cpp45 TranslationUnitDecl *D = Context.getTranslationUnitDecl(); in HandleTranslationUnit()
143 TraverseDecl(Context.getTranslationUnitDecl()); in HandleTranslationUnit()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestTU.cpp211 Ctx.setTraversalScope({Ctx.getTranslationUnitDecl()}); in TraverseHeadersToo()
226 const DeclContext *Scope = Ctx.getTranslationUnitDecl(); in findDecl()
249 Visitor.TraverseDecl(AST.getASTContext().getTranslationUnitDecl()); in findDecl()
H A DPrintASTTests.cpp51 V.TraverseDecl(AST.getASTContext().getTranslationUnitDecl()); in TEST_P()
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DIncrementalParser.cpp155 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 DAppleObjCDeclVendor.cpp123 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 DCloneChecker.cpp104 Mgr.getAnalysisDeclContext(ACtx.getTranslationUnitDecl())); in makeLocation()
164 Mgr.getAnalysisDeclContext(ACtx.getTranslationUnitDecl()); in reportSuspiciousClones()
H A DErrnoModeling.cpp79 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 DTransEmptyStatementsAndDealloc.cpp196 DeclContext *DC = Ctx.getTranslationUnitDecl(); in cleanupDeallocOrFinalize()
241 EmptyStatementsRemover(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in removeEmptyStatementsAndDeallocFinalize()
H A DTransUnusedInitDelegate.cpp76 trans.TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in rewriteUnusedInitDelegate()
H A DTransARCAssign.cpp76 assignCheck.TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in makeAssignARCSafe()
H A DTransAPIUses.cpp106 APIChecker(pass).TraverseDecl(pass.Ctx.getTranslationUnitDecl()); in checkAPIUses()
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DTraversalScope.cpp43 auto &TU = *Ctx.getTranslationUnitDecl(); in TEST()
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DCloneDetectionTest.cpp60 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
/llvm-project-15.0.7/lldb/unittests/TestingSupport/Symbol/
H A DClangTestUtils.h30 return ast.CreateRecordType(ast.getASTContext().getTranslationUnitDecl(), in createRecord()

123456