forked from OSchip/llvm-project
[clangd] Fix CLANGD_TIDY_CHECKS=Off tests after b859c39c40
This commit is contained in:
parent
b580c0e019
commit
5287237a74
|
@ -726,7 +726,7 @@ TEST(DiagnosticTest, ClangTidySelfContainedDiags) {
|
||||||
TextEdit{Main.range("MathHeader"), "#include <math.h>\n\n"});
|
TextEdit{Main.range("MathHeader"), "#include <math.h>\n\n"});
|
||||||
EXPECT_THAT(
|
EXPECT_THAT(
|
||||||
*TU.build().getDiagnostics(),
|
*TU.build().getDiagnostics(),
|
||||||
UnorderedElementsAre(
|
ifTidyChecks(UnorderedElementsAre(
|
||||||
AllOf(Diag(Main.range("A"), "'A' should be initialized in a member "
|
AllOf(Diag(Main.range("A"), "'A' should be initialized in a member "
|
||||||
"initializer of the constructor"),
|
"initializer of the constructor"),
|
||||||
withFix(equalToFix(ExpectedAFix))),
|
withFix(equalToFix(ExpectedAFix))),
|
||||||
|
@ -736,7 +736,7 @@ TEST(DiagnosticTest, ClangTidySelfContainedDiags) {
|
||||||
AllOf(Diag(Main.range("C"), "variable 'C' is not initialized"),
|
AllOf(Diag(Main.range("C"), "variable 'C' is not initialized"),
|
||||||
withFix(equalToFix(ExpectedCFix))),
|
withFix(equalToFix(ExpectedCFix))),
|
||||||
AllOf(Diag(Main.range("D"), "variable 'D' is not initialized"),
|
AllOf(Diag(Main.range("D"), "variable 'D' is not initialized"),
|
||||||
withFix(equalToFix(ExpectedDFix)))));
|
withFix(equalToFix(ExpectedDFix))))));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(DiagnosticsTest, Preprocessor) {
|
TEST(DiagnosticsTest, Preprocessor) {
|
||||||
|
|
Loading…
Reference in New Issue