Lines Matching refs:CI

46 void disableUnsupportedOptions(CompilerInvocation &CI) {  in disableUnsupportedOptions()  argument
50 CI.getDiagnosticOpts().VerifyDiagnostics = false; in disableUnsupportedOptions()
51 CI.getDiagnosticOpts().ShowColors = false; in disableUnsupportedOptions()
55 CI.getDependencyOutputOpts().ShowIncludesDest = ShowIncludesDestination::None; in disableUnsupportedOptions()
56 CI.getDependencyOutputOpts().OutputFile.clear(); in disableUnsupportedOptions()
57 CI.getDependencyOutputOpts().HeaderIncludeOutputFile.clear(); in disableUnsupportedOptions()
58 CI.getDependencyOutputOpts().DOTOutputFile.clear(); in disableUnsupportedOptions()
59 CI.getDependencyOutputOpts().ModuleDependencyOutputDir.clear(); in disableUnsupportedOptions()
64 CI.getPreprocessorOpts().ImplicitPCHInclude.clear(); in disableUnsupportedOptions()
65 CI.getPreprocessorOpts().PrecompiledPreambleBytes = {0, false}; in disableUnsupportedOptions()
66 CI.getPreprocessorOpts().PCHThroughHeader.clear(); in disableUnsupportedOptions()
67 CI.getPreprocessorOpts().PCHWithHdrStop = false; in disableUnsupportedOptions()
68 CI.getPreprocessorOpts().PCHWithHdrStopCreate = false; in disableUnsupportedOptions()
71 CI.getPreprocessorOpts().DisablePragmaDebugCrash = true; in disableUnsupportedOptions()
75 CI.getHeaderSearchOpts().ModuleFormat = in disableUnsupportedOptions()
78 CI.getFrontendOpts().Plugins.clear(); in disableUnsupportedOptions()
79 CI.getFrontendOpts().AddPluginActions.clear(); in disableUnsupportedOptions()
80 CI.getFrontendOpts().PluginArgs.clear(); in disableUnsupportedOptions()
81 CI.getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in disableUnsupportedOptions()
82 CI.getFrontendOpts().ActionName.clear(); in disableUnsupportedOptions()
107 std::unique_ptr<CompilerInvocation> CI = createInvocation(ArgStrs, CIOpts); in buildCompilerInvocation() local
108 if (!CI) in buildCompilerInvocation()
111 CI->getFrontendOpts().DisableFree = false; in buildCompilerInvocation()
112 CI->getLangOpts()->CommentOpts.ParseAllComments = true; in buildCompilerInvocation()
113 CI->getLangOpts()->RetainCommentsFromSystemHeaders = true; in buildCompilerInvocation()
115 disableUnsupportedOptions(*CI); in buildCompilerInvocation()
116 return CI; in buildCompilerInvocation()
120 prepareCompilerInstance(std::unique_ptr<clang::CompilerInvocation> CI, in prepareCompilerInstance() argument
126 assert(!CI->getPreprocessorOpts().RetainRemappedFileBuffers && in prepareCompilerInstance()
133 Preamble->OverridePreamble(*CI, VFS, Buffer.get()); in prepareCompilerInstance()
135 CI->getPreprocessorOpts().addRemappedFile( in prepareCompilerInstance()
136 CI->getFrontendOpts().Inputs[0].getFile(), Buffer.get()); in prepareCompilerInstance()
141 Clang->setInvocation(std::move(CI)); in prepareCompilerInstance()