[clang-tools-extra] 4f5a421 - [clangd] Update the test after diagnostic message change
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Thu May 19 03:03:53 PDT 2022
Author: Kirill Bobyrev
Date: 2022-05-19T12:03:31+02:00
New Revision: 4f5a4215bfc896362adab89abc69f0e69de200ef
URL: https://github.com/llvm/llvm-project/commit/4f5a4215bfc896362adab89abc69f0e69de200ef
DIFF: https://github.com/llvm/llvm-project/commit/4f5a4215bfc896362adab89abc69f0e69de200ef.diff
LOG: [clangd] Update the test after diagnostic message change
Added:
Modified:
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
index 50794f1a584e..d83f43d83f3f 100644
--- a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
+++ b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
@@ -1831,7 +1831,8 @@ TEST(DiagnosticsTest, IncludeCleaner) {
EXPECT_THAT(
*TU.build().getDiagnostics(),
UnorderedElementsAre(AllOf(
- Diag(Test.range("diag"), "included header unused.h is not used"),
+ Diag(Test.range("diag"),
+ "included header unused.h is not used directly"),
withTag(DiagnosticTag::Unnecessary), diagSource(Diag::Clangd),
withFix(Fix(Test.range("fix"), "", "remove #include directive")))));
Cfg.Diagnostics.SuppressAll = true;
More information about the cfe-commits
mailing list