| 8539 | } |
| 8540 | |
| 8541 | void simplifyIfSwitchForInit1() { |
| 8542 | const Settings settings = settingsBuilder().cpp(Standards::CPP17).build(); |
| 8543 | const char code[] = "void f() { if (a;b) {} }"; |
| 8544 | ASSERT_EQUALS("void f ( ) { { a ; if ( b ) { } } }", tokenizeAndStringify(code, settings)); |
| 8545 | } |
| 8546 | |
| 8547 | void simplifyIfSwitchForInit2() { |
| 8548 | const Settings settings = settingsBuilder().cpp(Standards::CPP20).build(); |