From edba5d58cd190591516ac8048a1bf4ebd0fb263f Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 12 Jan 2023 18:25:52 +0100 Subject: [PATCH] [clangd] Fix tests for CLANGD_TIDY_CHECKS=OFF builds --- clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp index 47f844f..610a290 100644 --- a/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp +++ b/clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp @@ -1859,9 +1859,9 @@ TEST(Diagnostics, Tags) { TU.ClangTidyProvider = addTidyChecks("modernize-use-using"); EXPECT_THAT( *TU.build().getDiagnostics(), - UnorderedElementsAre( + ifTidyChecks(UnorderedElementsAre( AllOf(Diag(Test.range("typedef"), "use 'using' instead of 'typedef'"), - withTag(DiagnosticTag::Deprecated)))); + withTag(DiagnosticTag::Deprecated))))); } TEST(DiagnosticsTest, IncludeCleaner) { -- 2.7.4