mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 11:38:04 +08:00
[clangd] Fix tests for CLANGD_TIDY_CHECKS=OFF builds
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user