Lines Matching defs:CI
46 void disableUnsupportedOptions(CompilerInvocation &CI) {
50 CI.getDiagnosticOpts().VerifyDiagnostics = false;
51 CI.getDiagnosticOpts().ShowColors = false;
55 CI.getDependencyOutputOpts().ShowIncludesDest = ShowIncludesDestination::None;
56 CI.getDependencyOutputOpts().OutputFile.clear();
57 CI.getDependencyOutputOpts().HeaderIncludeOutputFile.clear();
58 CI.getDependencyOutputOpts().DOTOutputFile.clear();
59 CI.getDependencyOutputOpts().ModuleDependencyOutputDir.clear();
64 CI.getPreprocessorOpts().ImplicitPCHInclude.clear();
65 CI.getPreprocessorOpts().PrecompiledPreambleBytes = {0, false};
66 CI.getPreprocessorOpts().PCHThroughHeader.clear();
67 CI.getPreprocessorOpts().PCHWithHdrStop = false;
68 CI.getPreprocessorOpts().PCHWithHdrStopCreate = false;
71 CI.getPreprocessorOpts().DisablePragmaDebugCrash = true;
75 CI.getHeaderSearchOpts().ModuleFormat =
78 CI.getFrontendOpts().Plugins.clear();
79 CI.getFrontendOpts().AddPluginActions.clear();
80 CI.getFrontendOpts().PluginArgs.clear();
81 CI.getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly;
82 CI.getFrontendOpts().ActionName.clear();
87 CI.getLangOpts().NoSanitizeFiles.clear();
88 CI.getLangOpts().XRayAttrListFiles.clear();
89 CI.getLangOpts().ProfileListFiles.clear();
90 CI.getLangOpts().XRayAlwaysInstrumentFiles.clear();
91 CI.getLangOpts().XRayNeverInstrumentFiles.clear();
116 std::unique_ptr<CompilerInvocation> CI = createInvocation(ArgStrs, CIOpts);
117 if (!CI)
120 CI->getFrontendOpts().DisableFree = false;
121 CI->getLangOpts().CommentOpts.ParseAllComments = true;
122 CI->getLangOpts().RetainCommentsFromSystemHeaders = true;
124 disableUnsupportedOptions(*CI);
125 return CI;
129 prepareCompilerInstance(std::unique_ptr<clang::CompilerInvocation> CI,
135 assert(!CI->getPreprocessorOpts().RetainRemappedFileBuffers &&
142 Preamble->OverridePreamble(*CI, VFS, Buffer.get());
144 CI->getPreprocessorOpts().addRemappedFile(
145 CI->getFrontendOpts().Inputs[0].getFile(), Buffer.get());
150 Clang->setInvocation(std::move(CI));