aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2024-03-11 15:25:28 -0400
committerAaron Ballman <aaron@aaronballman.com>2024-03-11 15:26:46 -0400
commit42ee286e51260286c59fa1186d0e56ad0f446054 (patch)
tree9d923c8b8699058e75f2992834e66afc10ca4449 /clang-tools-extra
parentd2e57c5c36d9b084f804cfd96a47472e23d05cac (diff)
downloadllvm-42ee286e51260286c59fa1186d0e56ad0f446054.zip
llvm-42ee286e51260286c59fa1186d0e56ad0f446054.tar.gz
llvm-42ee286e51260286c59fa1186d0e56ad0f446054.tar.bz2
Fixing test from 8467457afc61d70e881c9817ace26356ef757733
The clangd test was testing the previous diagnostic logic and now it's testing with the new warning flag.
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
index 2f6dd06..25d2f03 100644
--- a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
+++ b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
@@ -544,7 +544,7 @@ TEST(DiagnosticTest, RespectsDiagnosticConfig) {
Diag(Main.range("ret"),
"void function 'x' should not return a value")));
Config Cfg;
- Cfg.Diagnostics.Suppress.insert("return-type");
+ Cfg.Diagnostics.Suppress.insert("return-mismatch");
WithContextValue WithCfg(Config::Key, std::move(Cfg));
EXPECT_THAT(TU.build().getDiagnostics(),
ElementsAre(Diag(Main.range(),