@@ -383,26 +383,29 @@ TEST(Test_Variable_Analyzer_Type,
383
383
},
384
384
},
385
385
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
+ },
406
409
};
407
410
408
411
for (Variable_Visit_Kind& visit_kind : variable_visit_kinds) {
0 commit comments