• Home
  • Raw
  • Download

Lines Matching refs:CI

38 InitOnlyAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {  in CreateASTConsumer()  argument
50 ASTPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
51 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer()
52 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter); in CreateASTConsumer()
57 ASTDumpAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
58 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter, in CreateASTConsumer()
59 CI.getFrontendOpts().ASTDumpDecls, in CreateASTConsumer()
60 CI.getFrontendOpts().ASTDumpLookups); in CreateASTConsumer()
64 ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
69 ASTViewAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
74 DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI, in CreateASTConsumer() argument
80 GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
84 ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile); in CreateASTConsumer()
88 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer()
94 CI.getPreprocessor(), OutputFile, nullptr, Sysroot, in CreateASTConsumer()
95 Buffer, CI.getFrontendOpts().ModuleFileExtensions, in CreateASTConsumer()
98 +CI.getFrontendOpts().IncludeTimestamps)); in CreateASTConsumer()
99 Consumers.push_back(CI.getPCHContainerWriter().CreatePCHContainerGenerator( in CreateASTConsumer()
100 CI, InFile, OutputFile, OS, Buffer)); in CreateASTConsumer()
106 CompilerInstance &CI, StringRef InFile, std::string &Sysroot, in ComputeASTConsumerArguments() argument
108 Sysroot = CI.getHeaderSearchOpts().Sysroot; in ComputeASTConsumerArguments()
109 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) { in ComputeASTConsumerArguments()
110 CI.getDiagnostics().Report(diag::err_relocatable_without_isysroot); in ComputeASTConsumerArguments()
118 CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in ComputeASTConsumerArguments()
124 OutputFile = CI.getFrontendOpts().OutputFile; in ComputeASTConsumerArguments()
129 GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI, in CreateASTConsumer() argument
134 ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile); in CreateASTConsumer()
142 CI.getPreprocessor(), OutputFile, Module, Sysroot, in CreateASTConsumer()
143 Buffer, CI.getFrontendOpts().ModuleFileExtensions, in CreateASTConsumer()
146 +CI.getFrontendOpts().BuildingImplicitModule)); in CreateASTConsumer()
147 Consumers.push_back(CI.getPCHContainerWriter().CreatePCHContainerGenerator( in CreateASTConsumer()
148 CI, InFile, OutputFile, OS, Buffer)); in CreateASTConsumer()
267 bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI, in BeginSourceFileAction() argument
269 CI.getLangOpts().CompilingModule = true; in BeginSourceFileAction()
273 CI.getFileManager().getFile(Filename, /*openFile*/true); in BeginSourceFileAction()
275 CI.getDiagnostics().Report(diag::err_module_map_not_found) in BeginSourceFileAction()
282 for (const auto &F : CI.getFrontendOpts().ModulesEmbedFiles) { in BeginSourceFileAction()
283 if (const auto *FE = CI.getFileManager().getFile(F, /*openFile*/true)) in BeginSourceFileAction()
284 CI.getSourceManager().setFileIsTransient(FE); in BeginSourceFileAction()
286 CI.getDiagnostics().Report(diag::err_modules_embed_file_not_found) << F; in BeginSourceFileAction()
288 if (CI.getFrontendOpts().ModulesEmbedAllFiles) in BeginSourceFileAction()
289 CI.getSourceManager().setAllFilesAreTransient(true); in BeginSourceFileAction()
292 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in BeginSourceFileAction()
296 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction()
297 CI.getDiagnostics().Report(diag::err_missing_module_name); in BeginSourceFileAction()
309 SourceManager &SourceMgr = CI.getSourceManager(); in BeginSourceFileAction()
311 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
315 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
318 CI.getDiagnostics().Report(diag::err_missing_module) in BeginSourceFileAction()
319 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction()
327 if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Requirement, in BeginSourceFileAction()
330 CI.getDiagnostics().Report(MissingHeader.FileNameLoc, in BeginSourceFileAction()
334 CI.getDiagnostics().Report(diag::err_module_unavailable) in BeginSourceFileAction()
349 FileManager &FileMgr = CI.getFileManager(); in BeginSourceFileAction()
356 CI.getLangOpts(), Module->IsExternC); in BeginSourceFileAction()
358 CI.getLangOpts(), FileMgr, in BeginSourceFileAction()
359 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap(), Module, in BeginSourceFileAction()
363 CI.getDiagnostics().Report(diag::err_module_cannot_create_includes) in BeginSourceFileAction()
370 CI.getPreprocessor().setMainFileDir(Module->Directory); in BeginSourceFileAction()
382 CompilerInstance &CI, StringRef InFile, std::string &Sysroot, in ComputeASTConsumerArguments() argument
386 if (CI.getFrontendOpts().OutputFile.empty()) { in ComputeASTConsumerArguments()
387 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in ComputeASTConsumerArguments()
388 CI.getFrontendOpts().OutputFile = in ComputeASTConsumerArguments()
389 HS.getModuleFileName(CI.getLangOpts().CurrentModule, in ComputeASTConsumerArguments()
397 CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in ComputeASTConsumerArguments()
404 OutputFile = CI.getFrontendOpts().OutputFile; in ComputeASTConsumerArguments()
412 SyntaxOnlyAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
417 DumpModuleInfoAction::CreateASTConsumer(CompilerInstance &CI, in CreateASTConsumer() argument
423 VerifyPCHAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
428 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
429 bool Preamble = CI.getPreprocessorOpts().PrecompiledPreambleBytes.first != 0; in ExecuteAction()
430 const std::string &Sysroot = CI.getHeaderSearchOpts().Sysroot; in ExecuteAction()
432 CI.getPreprocessor(), CI.getASTContext(), CI.getPCHContainerReader(), in ExecuteAction()
433 CI.getFrontendOpts().ModuleFileExtensions, in ExecuteAction()
649 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
650 raw_pwrite_stream *OS = CI.createDefaultOutputFile(true, getCurrentFile()); in ExecuteAction()
654 CacheTokens(CI.getPreprocessor(), OS); in ExecuteAction()
672 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
688 const SourceManager& SM = CI.getSourceManager(); in ExecuteAction()
715 raw_ostream *OS = CI.createDefaultOutputFile(BinaryMode, getCurrentFile()); in ExecuteAction()
718 DoPrintPreprocessedInput(CI.getPreprocessor(), OS, in ExecuteAction()
719 CI.getPreprocessorOutputOpts()); in ExecuteAction()
746 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
747 auto Buffer = CI.getFileManager().getBufferForFile(getCurrentFile()); in ExecuteAction()
750 Lexer::ComputePreamble((*Buffer)->getBuffer(), CI.getLangOpts()).first; in ExecuteAction()