Closed pau101 closed 7 months ago
Both do-while statements and expression for-init statements would be output with incorrect syntax by show_translation_unit.
show_translation_unit
This PR adds the missing semicolons as needed.
Example Input:
do { a(); } while (true); int i; for (i = 0; ; ) { }
Before:
do { a(); } while (true) int i; for (i = 0; ) { }
After:
Damn, I can’t believe I missed that in my notifications. Thanks!
Both do-while statements and expression for-init statements would be output with incorrect syntax by
show_translation_unit
.This PR adds the missing semicolons as needed.
Example Input:
Before:
After: