@@ -61,9 +61,7 @@ MATCHER_P3(Fix, Range, Replacement, Message,
61
61
arg.Edits [0 ].range == Range && arg.Edits [0 ].newText == Replacement;
62
62
}
63
63
64
- MATCHER_P (FixMessage, Message, " " ) {
65
- return arg.Message == Message;
66
- }
64
+ MATCHER_P (FixMessage, Message, " " ) { return arg.Message == Message; }
67
65
68
66
MATCHER_P (EqualToLSPDiag, LSPDiag,
69
67
" LSP diagnostic " + llvm::to_string(LSPDiag)) {
@@ -258,13 +256,13 @@ TEST(DiagnosticsTest, ClangTidy) {
258
256
Diag (Test.range (" macroarg" ),
259
257
" multiple unsequenced modifications to 'y'" ),
260
258
AllOf (
261
- Diag (Test.range (" main" ),
262
- " use a trailing return type for this function" ),
263
- DiagSource (Diag::ClangTidy),
264
- DiagName (" modernize-use-trailing-return-type" ),
265
- // Verify that we don't have "[check-name]" suffix in the message.
266
- WithFix (FixMessage (" use a trailing return type for this function " )))
267
- ));
259
+ Diag (Test.range (" main" ),
260
+ " use a trailing return type for this function" ),
261
+ DiagSource (Diag::ClangTidy),
262
+ DiagName (" modernize-use-trailing-return-type" ),
263
+ // Verify that we don't have "[check-name]" suffix in the message.
264
+ WithFix (FixMessage (
265
+ " use a trailing return type for this function " ))) ));
268
266
}
269
267
270
268
TEST (DiagnosticTest, ClangTidySuppressionComment) {
@@ -836,8 +834,9 @@ TEST(IncludeFixerTest, NoCrashOnTemplateInstantiations) {
836
834
auto Index = buildIndexWithSymbol ({});
837
835
TU.ExternalIndex = Index.get ();
838
836
839
- EXPECT_THAT (TU.build ().getDiagnostics (),
840
- ElementsAre (Diag (Test.range (), " use of undeclared identifier 'a'" )));
837
+ EXPECT_THAT (
838
+ TU.build ().getDiagnostics (),
839
+ ElementsAre (Diag (Test.range (), " use of undeclared identifier 'a'" )));
841
840
}
842
841
843
842
TEST (DiagsInHeaders, DiagInsideHeader) {
0 commit comments