Skip to content

Commit 0b4940c

Browse files
committed
refactor(test): fix formatting
1 parent cd1a8bd commit 0b4940c

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

test/test-variable-analyzer-type.cpp

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -383,26 +383,29 @@ TEST(Test_Variable_Analyzer_Type,
383383
},
384384
},
385385

386-
{.description = "visit_variable_use",
387-
.visit =
388-
[](Variable_Analyzer& l) {
389-
l.visit_variable_use(identifier_of(use));
390-
},
391-
.check_diagnostics_impl =
392-
[](Diag_Collector& diags,
393-
std::optional<Variable_Kind> runtime_var_kind,
394-
Source_Location caller) -> void {
395-
if (runtime_var_kind.has_value()) {
396-
EXPECT_THAT_AT_CALLER(diags.errors, IsEmpty());
397-
} else {
398-
// TODO(strager): Report a more helpful message.
399-
EXPECT_THAT_AT_CALLER(
400-
diags.errors, ElementsAreArray({
401-
DIAG_TYPE_SPAN(Diag_Use_Of_Undeclared_Variable,
402-
name, span_of(use)),
403-
}));
404-
}
405-
}},
386+
{
387+
.description = "visit_variable_use",
388+
.visit =
389+
[](Variable_Analyzer& l) {
390+
l.visit_variable_use(identifier_of(use));
391+
},
392+
.check_diagnostics_impl =
393+
[](Diag_Collector& diags,
394+
std::optional<Variable_Kind> runtime_var_kind,
395+
Source_Location caller) -> void {
396+
if (runtime_var_kind.has_value()) {
397+
EXPECT_THAT_AT_CALLER(diags.errors, IsEmpty());
398+
} else {
399+
// TODO(strager): Report a more helpful message.
400+
EXPECT_THAT_AT_CALLER(
401+
diags.errors,
402+
ElementsAreArray({
403+
DIAG_TYPE_SPAN(Diag_Use_Of_Undeclared_Variable, name,
404+
span_of(use)),
405+
}));
406+
}
407+
},
408+
},
406409
};
407410

408411
for (Variable_Visit_Kind& visit_kind : variable_visit_kinds) {

0 commit comments

Comments
 (0)