From d0ccd55151f52992912dbc12d04a027cf5e06d2f Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Mon, 9 Dec 2019 19:21:58 +0100 Subject: [PATCH] [clangd] also filter out another possible diag from MS ASM syntax --- clang-tools-extra/clangd/Diagnostics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/Diagnostics.cpp b/clang-tools-extra/clangd/Diagnostics.cpp index f97191196e7b..0670de087e2f 100644 --- a/clang-tools-extra/clangd/Diagnostics.cpp +++ b/clang-tools-extra/clangd/Diagnostics.cpp @@ -74,8 +74,9 @@ bool mentionsMainFile(const Diag &D) { } bool isBlacklisted(const Diag &D) { - // clang will always fail to MS ASM as we don't link in desc + asm parser. - if (D.ID == clang::diag::err_msasm_unable_to_create_target) + // clang will always fail parsing MS ASM, we don't link in desc + asm parser. + if (D.ID == clang::diag::err_msasm_unable_to_create_target || + D.ID == clang::diag::err_msasm_unsupported_arch) return true; return false; }