Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


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,
Kendy


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.