Lines Matching refs:CI
35 HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
36 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile)) in CreateASTConsumer()
37 return CreateHTMLPrinter(OS, CI.getPreprocessor()); in CreateASTConsumer()
45 FixItAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
89 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI, in BeginSourceFileAction() argument
99 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginSourceFileAction()
100 CI.getLangOpts(), FixItOpts.get())); in BeginSourceFileAction()
109 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) { in BeginInvocation() argument
114 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation()
116 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) { in BeginInvocation()
125 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(), in BeginInvocation()
126 CI.getLangOpts(), FixItOpts.get()); in BeginInvocation()
132 CI.setSourceManager(nullptr); in BeginInvocation()
133 CI.setFileManager(nullptr); in BeginInvocation()
140 CI.getDiagnosticClient().clear(); in BeginInvocation()
141 CI.getDiagnostics().Reset(); in BeginInvocation()
143 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts(); in BeginInvocation()
154 RewriteObjCAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { in CreateASTConsumer() argument
155 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile, "cpp")) { in CreateASTConsumer()
156 if (CI.getLangOpts().ObjCRuntime.isNonFragile()) in CreateASTConsumer()
158 InFile, OS, CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer()
159 CI.getDiagnosticOpts().NoRewriteMacros, in CreateASTConsumer()
160 (CI.getCodeGenOpts().getDebugInfo() != codegenoptions::NoDebugInfo)); in CreateASTConsumer()
162 CI.getDiagnostics(), CI.getLangOpts(), in CreateASTConsumer()
163 CI.getDiagnosticOpts().NoRewriteMacros); in CreateASTConsumer()
175 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
176 raw_ostream *OS = CI.createDefaultOutputFile(true, getCurrentFile()); in ExecuteAction()
179 RewriteMacrosInInput(CI.getPreprocessor(), OS); in ExecuteAction()
183 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
184 raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile()); in ExecuteAction()
187 DoRewriteTest(CI.getPreprocessor(), OS); in ExecuteAction()
191 CompilerInstance &CI = getCompilerInstance(); in ExecuteAction() local
192 raw_ostream *OS = CI.createDefaultOutputFile(true, getCurrentFile()); in ExecuteAction()
195 RewriteIncludesInInput(CI.getPreprocessor(), OS, in ExecuteAction()
196 CI.getPreprocessorOutputOpts()); in ExecuteAction()