While using uncrustify, I encountered a problem with while loops. If the while loop has no body, a trailing semicolon will get pushed to the next line. On the GitHub and on this website I found no mention of this whatsoever. Is the problem related to forcing one liners in different lines?
The code I tried it with is: (This is also what it should look like in the end)
int main()
{
int i = 20000;
while(i--);
return 0;
}
But what uncrustify returns is:
int main()
{
int i = 20000;
while (i--)
;
return 0;
}
Config file: https://pastebin.com/3FUqHmp8