Lines Matching refs:CI

33 ASTConsumer *HTMLPrintAction::CreateASTConsumer(CompilerInstance &CI,
35 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
36 return CreateHTMLPrinter(OS, CI.getPreprocessor());
43 ASTConsumer *FixItAction::CreateASTConsumer(CompilerInstance &CI,
87 bool FixItAction::BeginSourceFileAction(CompilerInstance &CI,
97 Rewriter.reset(new FixItRewriter(CI.getDiagnostics(), CI.getSourceManager(),
98 CI.getLangOpts(), FixItOpts.get()));
107 bool FixItRecompile::BeginInvocation(CompilerInstance &CI) {
112 const FrontendOptions &FEOpts = CI.getFrontendOpts();
114 if (FixAction->BeginSourceFile(CI, FEOpts.Inputs[0])) {
123 FixItRewriter Rewriter(CI.getDiagnostics(), CI.getSourceManager(),
124 CI.getLangOpts(), FixItOpts.get());
130 CI.setSourceManager(nullptr);
131 CI.setFileManager(nullptr);
138 CI.getDiagnosticClient().clear();
139 CI.getDiagnostics().Reset();
141 PreprocessorOptions &PPOpts = CI.getPreprocessorOpts();
153 ASTConsumer *RewriteObjCAction::CreateASTConsumer(CompilerInstance &CI,
155 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile, "cpp")) {
156 if (CI.getLangOpts().ObjCRuntime.isNonFragile())
158 CI.getDiagnostics(), CI.getLangOpts(),
159 CI.getDiagnosticOpts().NoRewriteMacros,
160 (CI.getCodeGenOpts().getDebugInfo() !=
163 CI.getDiagnostics(), CI.getLangOpts(),
164 CI.getDiagnosticOpts().NoRewriteMacros);
170 CompilerInstance &CI = getCompilerInstance();
171 raw_ostream *OS = CI.createDefaultOutputFile(true, getCurrentFile());
174 RewriteMacrosInInput(CI.getPreprocessor(), OS);
178 CompilerInstance &CI = getCompilerInstance();
179 raw_ostream *OS = CI.createDefaultOutputFile(false, getCurrentFile());
182 DoRewriteTest(CI.getPreprocessor(), OS);
186 CompilerInstance &CI = getCompilerInstance();
187 raw_ostream *OS = CI.createDefaultOutputFile(true, getCurrentFile());
190 RewriteIncludesInInput(CI.getPreprocessor(), OS,
191 CI.getPreprocessorOutputOpts());