Menu

#7 remove unnecessary braces

open
nobody
None
5
2005-03-10
2005-03-10
Anonymous
No

I would like to have an option in GC to remove
unnecessary braces
(especially when there is only a simple statement
inside the braces).
An example:

BEFORE:
if (x < 10)
{
printf("Small x\n");
}
else
{
printf("Big x\n");
}

AFTER:
if (x < 10)
printf("Small x\n");
else
printf("Big x\n");

I know that this is a bit beyond beautifying, but sure
it would
be very nice...

GC.uranium@neverbox.com

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.