| 8545 | } |
| 8546 | |
| 8547 | void simplifyIfSwitchForInit2() { |
| 8548 | const Settings settings = settingsBuilder().cpp(Standards::CPP20).build(); |
| 8549 | const char code[] = "void f() { if (a;b) {} else {} }"; |
| 8550 | ASSERT_EQUALS("void f ( ) { { a ; if ( b ) { } else { } } }", tokenizeAndStringify(code, settings)); |
| 8551 | } |
| 8552 | |
| 8553 | void simplifyIfSwitchForInit3() { |
| 8554 | const Settings settings = settingsBuilder().cpp(Standards::CPP20).build(); |