| // RUN: %check_clang_tidy %s readability-braces-around-statements %t -- -config="{CheckOptions: [{key: readability-braces-around-statements.ShortStatementLines, value: 4}]}" -- |
| void do_something(const char *) {} |
| bool cond(const char *) { |
| if (cond("if1") /*comment*/) do_something("same-line"); |
| do_something("single-line"); |
| if (cond("if3") /*comment*/) |
| if (cond("if4") /*comment*/) |
| // CHECK-MESSAGES: :[[@LINE-7]]:31: warning: statement should be inside braces |
| // CHECK-FIXES: if (cond("if4") /*comment*/) { |