[clangd] Fix tests for CLANGD_TIDY_CHECKS=OFF builds

This commit is contained in:
Kadir Cetinkaya
2023-01-12 18:25:52 +01:00
parent 275bca6575
commit edba5d58cd

View File

@@ -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) {