Author: Aaron Ballman Date: 2024-03-11T15:26:46-04:00 New Revision: 42ee286e51260286c59fa1186d0e56ad0f446054
URL: https://github.com/llvm/llvm-project/commit/42ee286e51260286c59fa1186d0e56ad0f446054 DIFF: https://github.com/llvm/llvm-project/commit/42ee286e51260286c59fa1186d0e56ad0f446054.diff LOG: Fixing test from 8467457afc61d70e881c9817ace26356ef757733 The clangd test was testing the previous diagnostic logic and now it's testing with the new warning flag. 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 2f6dd0611b6621..25d2f03e0b366b 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(), _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits