[clang-tools-extra] d0ccd55 - [clangd] also filter out another possible diag from MS ASM syntax
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 10:22:58 PST 2019
Author: Sam McCall
Date: 2019-12-09T19:21:58+01:00
New Revision: d0ccd55151f52992912dbc12d04a027cf5e06d2f
URL: https://github.com/llvm/llvm-project/commit/d0ccd55151f52992912dbc12d04a027cf5e06d2f
DIFF: https://github.com/llvm/llvm-project/commit/d0ccd55151f52992912dbc12d04a027cf5e06d2f.diff
LOG: [clangd] also filter out another possible diag from MS ASM syntax
Added:
Modified:
clang-tools-extra/clangd/Diagnostics.cpp
Removed:
################################################################################
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;
}
More information about the cfe-commits
mailing list