mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 07:59:27 +00:00
clang_tu: set RecoveryAST & RecoveryASTType
This commit is contained in:
parent
e3e687f81d
commit
f5bcd1dbdd
@ -152,6 +152,10 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
|
||||
// Enable IndexFrontendAction::shouldSkipFunctionBody.
|
||||
ci->getFrontendOpts().SkipFunctionBodies = true;
|
||||
ci->getLangOpts()->SpellChecking = false;
|
||||
#if LLVM_VERSION_MAJOR >= 11
|
||||
ci->getLangOpts()->RecoveryAST = true;
|
||||
ci->getLangOpts()->RecoveryASTType = true;
|
||||
#endif
|
||||
auto &isec = ci->getFrontendOpts().Inputs;
|
||||
if (isec.size())
|
||||
isec[0] = FrontendInputFile(main, isec[0].getKind(), isec[0].isSystem());
|
||||
|
Loading…
Reference in New Issue
Block a user