[cfe-commits] If statement pretty printing
Sebastian Redl
sebastian.redl at getdesigned.at
Fri Feb 6 15:32:29 PST 2009
Ben Lickly wrote:
> Is there any reason why the StmtPrinter.cpp doesn't put parenthesis
> around the condition of an if statement when using -ast-print? If
> not, here is a patch to add them in.
>
Good catch, but I think the closing parenthesis should be written
outside the if. It's just cleaner, and the pretty printer isn't that
performance-sensitive.
Sebastian
More information about the cfe-commits
mailing list