mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-28 18:41:57 +00:00
Adapt trunk change and write comments to PCH
This commit is contained in:
parent
f9cf7854fa
commit
40b47f9ca3
@ -320,11 +320,8 @@ void BuildPreamble(CompletionSession &session, CompilerInvocation &CI,
|
||||
return;
|
||||
CI.getDiagnosticOpts().IgnoreWarnings = false;
|
||||
CI.getFrontendOpts().SkipFunctionBodies = true;
|
||||
CI.getLangOpts()->CommentOpts.ParseAllComments = true;
|
||||
CI.getLangOpts()->CommentOpts.ParseAllComments = g_config->index.comments > 1;
|
||||
CI.getLangOpts()->RetainCommentsFromSystemHeaders = true;
|
||||
#if LLVM_VERSION_MAJOR >= 7
|
||||
CI.getPreprocessorOpts().WriteCommentListToPCH = false;
|
||||
#endif
|
||||
|
||||
StoreDiags DC(main);
|
||||
IntrusiveRefCntPtr<DiagnosticsEngine> DE =
|
||||
|
@ -124,7 +124,7 @@ struct ProjectProcessor {
|
||||
const driver::JobList &Jobs = C->getJobs();
|
||||
if (Jobs.size() != 1)
|
||||
return;
|
||||
const driver::ArgStringList &CCArgs = Jobs.begin()->getArguments();
|
||||
const auto &CCArgs = Jobs.begin()->getArguments();
|
||||
|
||||
auto CI = std::make_unique<CompilerInvocation>();
|
||||
CompilerInvocation::CreateFromArgs(*CI, CCArgs.data(),
|
||||
|
Loading…
Reference in New Issue
Block a user