the inevitable C formatting/brace style flamewar

Jan Holesovsky kendy at
Thu Aug 16 22:24:36 PDT 2012

Hi Michael,

Michael Stahl píše v Čt 16. 08. 2012 v 19:07 +0200:

> if memory serves i've reviewed 2 patches in the last 3 months or so that
> added a statement to a 1-line then or else clause that was indented but
> did not have braces, and the author indented his new line and forgot the
> braces.  clearly that indicates to me that syntax significant
> indentation (as in Haskell or Python) is an excellent idea that prevents
> bugs

How comes that clang does not have a warning for that?  Or does it
have? ;-)

If it does not, and yet these errors happen so often - it might be
useful to create a check for that based on the recent Lubos' clang
magic.  EasyHack, maybe?

All the best,

More information about the LibreOffice mailing list