mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 10:01:42 +00:00
[libclang] Disable spell-checking and warnings during code-completion since they are not needed.
llvm-svn: 220966
This commit is contained in:
parent
d92da47707
commit
06e8d69ac7
@ -2326,6 +2326,10 @@ void ASTUnit::CodeComplete(StringRef File, unsigned Line, unsigned Column,
|
||||
// Set the language options appropriately.
|
||||
LangOpts = *CCInvocation->getLangOpts();
|
||||
|
||||
// Spell-checking and warnings are wasteful during code-completion.
|
||||
LangOpts.SpellChecking = false;
|
||||
CCInvocation->getDiagnosticOpts().IgnoreWarnings = true;
|
||||
|
||||
std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
|
||||
|
||||
// Recover resources if we crash before exiting this method.
|
||||
|
Loading…
Reference in New Issue
Block a user