GCC 6 Will Warn You About Misleading Code Indentations
> "Specifically, a warning is issued for if, else, while, and for clauses with a guarded statement that does not use braces, followed by an unguarded statement with the same indentation."<p>> "The warning is not issued for code involving multiline preprocessor logic ... The warning is not issued after a @code{#line} directive, since this typically indicates autogenerated code"<p>Seems like a good thing to have, and pretty conservative about not causing false positives. In particular, constructs like double-iteration should be fine:<p><pre><code>    for(y=0; y<ymax; y++)
    for(x=0; x<xmax; x++)
    {
        //...
    }
</code></pre>
Which I checked because I like this construct and people very rarely think about it.