Lines Matching refs:CI

35 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI,
47 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI,
49 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
50 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter);
54 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI,
56 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter);
59 ASTConsumer *ASTDeclListAction::CreateASTConsumer(CompilerInstance &CI,
64 ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI,
67 if (CI.getFrontendOpts().OutputFile.empty())
70 OS = CI.createDefaultOutputFile(false, InFile);
75 ASTConsumer *ASTViewAction::CreateASTConsumer(CompilerInstance &CI,
80 ASTConsumer *DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI,
85 ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI,
90 if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS))
93 if (!CI.getFrontendOpts().RelocatablePCH)
95 return new PCHGenerator(CI.getPreprocessor(), OutputFile, 0, Sysroot, OS);
98 bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI,
103 Sysroot = CI.getHeaderSearchOpts().Sysroot;
104 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) {
105 CI.getDiagnostics().Report(diag::err_relocatable_without_isysroot);
112 OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
118 OutputFile = CI.getFrontendOpts().OutputFile;
122 ASTConsumer *GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI,
127 if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS))
130 return new PCHGenerator(CI.getPreprocessor(), OutputFile, Module,
208 bool GenerateModuleAction::BeginSourceFileAction(CompilerInstance &CI,
211 const FileEntry *ModuleMap = CI.getFileManager().getFile(Filename);
213 CI.getDiagnostics().Report(diag::err_module_map_not_found)
219 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
223 if (CI.getLangOpts().CurrentModule.empty()) {
224 CI.getDiagnostics().Report(diag::err_missing_module_name);
234 Module = HS.lookupModule(CI.getLangOpts().CurrentModule,
237 CI.getDiagnostics().Report(diag::err_missing_module)
238 << CI.getLangOpts().CurrentModule << Filename;
245 if (!Module->isAvailable(CI.getLangOpts(), CI.getTarget(), Feature)) {
246 CI.getDiagnostics().Report(diag::err_module_unavailable)
258 collectModuleHeaderIncludes(CI.getLangOpts(), CI.getFileManager(),
259 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap(),
270 FileManager &FileMgr = CI.getFileManager();
281 CI.getDiagnostics().Report(diag::err_missing_umbrella_header)
322 CI.getSourceManager().overrideFileContents(HeaderFile, HeaderContentsBuf);
328 bool GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI,
335 if (CI.getFrontendOpts().OutputFile.empty()) {
336 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo();
339 CI.getLangOpts().CurrentModule + ".pcm");
340 CI.getFrontendOpts().OutputFile = ModuleFileName.str();
346 OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
353 OutputFile = CI.getFrontendOpts().OutputFile;
357 ASTConsumer *SyntaxOnlyAction::CreateASTConsumer(CompilerInstance &CI,
397 CompilerInstance &CI = getCompilerInstance();
398 if (CI.getFrontendOpts().OutputFile.empty() ||
399 CI.getFrontendOpts().OutputFile == "-") {
405 CI.createDefaultOutputFile(true, getCurrentFile());
408 CacheTokens(CI.getPreprocessor(), OS);
426 CompilerInstance &CI = getCompilerInstance();
442 const SourceManager& SM = CI.getSourceManager();
468 raw_ostream *OS = CI.createDefaultOutputFile(BinaryMode, getCurrentFile());
471 DoPrintPreprocessedInput(CI.getPreprocessor(), OS,
472 CI.getPreprocessorOutputOpts());
497 CompilerInstance &CI = getCompilerInstance();
499 = CI.getFileManager().getBufferForFile(getCurrentFile());
501 unsigned Preamble = Lexer::ComputePreamble(Buffer, CI.getLangOpts()).first;