[clangd] Don't crash on `#pragma clang __debug parser_crash`
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Thu, 20 Aug 2020 12:50:13 +0000 (15:50 +0300)
committerAleksandr Platonov <platonov.aleksandr@huawei.com>
Thu, 20 Aug 2020 12:53:21 +0000 (15:53 +0300)
commit445739826567e5402b558f2c130d76dc916c82ec
tree3c3adb90b5b39cd0a4a9ac0546ba17d3fb468e11
parent707138d677861182083b3c6c3b44b76951fd36ef
[clangd] Don't crash on `#pragma clang __debug parser_crash`

Currently, clangd crashes when opening a file with `#pragma clang __debug parser_crash` (e.g. clang/test/Modules/Inputs/crash.h).
This patch disables these crashes.

Reviewed By: kadircet

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