[clangd] Disable backend-releated filelist compiler options.
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 4 Jan 2023 09:42:24 +0000 (10:42 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 4 Jan 2023 12:00:24 +0000 (13:00 +0100)
commit68fe0674187d1b44058c916620a6babfa626c947
tree1c09a9a474b9d47dd3ae470472c00886dac56028
parent6ff87fed441680f0d673186e602c6017fef68640
[clangd] Disable backend-releated filelist compiler options.

These options doesn't affect the AST generation, and clang will crash
(CreateOrDie in ASTContext) immedidately when the provided file are not existed.

Disable them in clangd to make clangd more robust.

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