[clangd] Only emit default error/fatal diagnostices from included files.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 14 May 2020 07:23:42 +0000 (09:23 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 14 May 2020 09:09:06 +0000 (11:09 +0200)
commitdbc9e1c39aed43e6faa6b29caeed7bc5b43569f1
tree584220d398ede0f9bfc9c6bc9b0aa0a8fb5e371f
parent9ffaba86e5b33b9f7e919bc5da8a36390bb816ee
[clangd] Only emit default error/fatal diagnostices from included files.

Summary:
This would avoid adding too much noise when there is a "-Wall" in the
compile command.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79923
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp