Author: Sam McCall Date: 2022-04-21T23:02:41+02:00 New Revision: 5287237a74a8d316f079ae4db666138752fa69b4
URL: https://github.com/llvm/llvm-project/commit/5287237a74a8d316f079ae4db666138752fa69b4 DIFF: https://github.com/llvm/llvm-project/commit/5287237a74a8d316f079ae4db666138752fa69b4.diff LOG: [clangd] Fix CLANGD_TIDY_CHECKS=Off tests after b859c39c40a7 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 c866a0f2ba5c1..18c16190aeba9 100644 --- a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp +++ b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp @@ -726,7 +726,7 @@ TEST(DiagnosticTest, ClangTidySelfContainedDiags) { TextEdit{Main.range("MathHeader"), "#include <math.h>\n\n"}); EXPECT_THAT( *TU.build().getDiagnostics(), - UnorderedElementsAre( + ifTidyChecks(UnorderedElementsAre( AllOf(Diag(Main.range("A"), "'A' should be initialized in a member " "initializer of the constructor"), withFix(equalToFix(ExpectedAFix))), @@ -736,7 +736,7 @@ TEST(DiagnosticTest, ClangTidySelfContainedDiags) { AllOf(Diag(Main.range("C"), "variable 'C' is not initialized"), withFix(equalToFix(ExpectedCFix))), AllOf(Diag(Main.range("D"), "variable 'D' is not initialized"), - withFix(equalToFix(ExpectedDFix))))); + withFix(equalToFix(ExpectedDFix)))))); } TEST(DiagnosticsTest, Preprocessor) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits