Disable warnings when indexing as a standalone action.
authorSam McCall <sam.mccall@gmail.com>
Thu, 28 Mar 2019 17:07:28 +0000 (17:07 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 28 Mar 2019 17:07:28 +0000 (17:07 +0000)
commit4180a7cd831537567c9c9eb8528365e3958aed6b
treee33ba9dbf6a4a0524b1e96efbd3eb640c867ed90
parentc694633a12af1312fcafd73d4de57ae40f696595
Disable warnings when indexing as a standalone action.

Summary:
- we don't record the warnings at all
- we don't want to stop indexing if we hit error-limit due to warnings
- this allows some analyses to be skipped which can save some CPU

https://github.com/clangd/clangd/issues/24

Reviewers: hokein

Subscribers: ilya-biryukov, ioeric, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59935

llvm-svn: 357186
clang-tools-extra/clangd/index/IndexAction.cpp
clang-tools-extra/unittests/clangd/IndexActionTests.cpp