Lines Matching refs:CI

36 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI,
48 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI,
50 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
51 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter);
55 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI,
57 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter,
58 CI.getFrontendOpts().ASTDumpLookups);
61 ASTConsumer *ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI,
66 ASTConsumer *ASTViewAction::CreateASTConsumer(CompilerInstance &CI,
71 ASTConsumer *DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI,
76 ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI,
81 if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS))
84 if (!CI.getFrontendOpts().RelocatablePCH)
86 return new PCHGenerator(CI.getPreprocessor(), OutputFile, nullptr, Sysroot,
90 bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI,
95 Sysroot = CI.getHeaderSearchOpts().Sysroot;
96 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) {
97 CI.getDiagnostics().Report(diag::err_relocatable_without_isysroot);
104 OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
110 OutputFile = CI.getFrontendOpts().OutputFile;
114 ASTConsumer *GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI,
119 if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS))
122 return new PCHGenerator(CI.getPreprocessor(), OutputFile, Module,
243 bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI,
246 const FileEntry *ModuleMap = CI.getFileManager().getFile(Filename);
248 CI.getDiagnostics().Report(diag::err_module_map_not_found)
254 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
258 if (CI.getLangOpts().CurrentModule.empty()) {
259 CI.getDiagnostics().Report(diag::err_missing_module_name);
271 SourceManager &SourceMgr = CI.getSourceManager();
273 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule,
277 Module = HS.lookupModule(CI.getLangOpts().CurrentModule,
280 CI.getDiagnostics().Report(diag::err_missing_module)
281 << CI.getLangOpts().CurrentModule << Filename;
289 if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Requirement,
292 CI.getDiagnostics().Report(MissingHeader.FileNameLoc,
296 CI.getDiagnostics().Report(diag::err_module_unavailable)
309 FileManager &FileMgr = CI.getFileManager();
315 Err = addHeaderInclude(UmbrellaHeader, HeaderContents, CI.getLangOpts(),
319 CI.getLangOpts(), FileMgr,
320 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap(), Module,
324 CI.getDiagnostics().Report(diag::err_module_cannot_create_includes)
338 bool GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI,
345 if (CI.getFrontendOpts().OutputFile.empty()) {
346 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
347 CI.getFrontendOpts().OutputFile =
348 HS.getModuleFileName(CI.getLangOpts().CurrentModule,
355 OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
362 OutputFile = CI.getFrontendOpts().OutputFile;
366 ASTConsumer *SyntaxOnlyAction::CreateASTConsumer(CompilerInstance &CI,
371 ASTConsumer *DumpModuleInfoAction::CreateASTConsumer(CompilerInstance &CI,
376 ASTConsumer *VerifyPCHAction::CreateASTConsumer(CompilerInstance &CI,
382 CompilerInstance &CI = getCompilerInstance();
383 bool Preamble = CI.getPreprocessorOpts().PrecompiledPreambleBytes.first != 0;
384 const std::string &Sysroot = CI.getHeaderSearchOpts().Sysroot;
386 new ASTReader(CI.getPreprocessor(), CI.getASTContext(),
578 CompilerInstance &CI = getCompilerInstance();
579 if (CI.getFrontendOpts().OutputFile.empty() ||
580 CI.getFrontendOpts().OutputFile == "-") {
586 CI.createDefaultOutputFile(true, getCurrentFile());
589 CacheTokens(CI.getPreprocessor(), OS);
607 CompilerInstance &CI = getCompilerInstance();
623 const SourceManager& SM = CI.getSourceManager();
649 raw_ostream *OS = CI.createDefaultOutputFile(BinaryMode, getCurrentFile());
652 DoPrintPreprocessedInput(CI.getPreprocessor(), OS,
653 CI.getPreprocessorOutputOpts());
678 CompilerInstance &CI = getCompilerInstance();
680 = CI.getFileManager().getBufferForFile(getCurrentFile());
682 unsigned Preamble = Lexer::ComputePreamble(Buffer, CI.getLangOpts()).first;