Skip to content

Commit

Permalink
[clangd] also filter out another possible diag from MS ASM syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-mccall committed Dec 9, 2019
1 parent be7d633 commit d0ccd55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clang-tools-extra/clangd/Diagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d0ccd55

Please sign in to comment.