According to Braces rule 2 of the Webkit coding style guidelines[1]: "Other braces: place the open brace on the line preceding the code block; place the close brace on its own line." cpplint doesn't complain about non-compliance with this rule when using the Qt foreach macro, as illustrated below WRONG CODING STYLE: foreach (AbstractMetaFunction *func, lst) { qDebug() << "*" << func->ownerClass()->name() << "Private: " << func->isPrivate() << "Empty: " << func->isEmptyFunction(); } [1] http://webkit.org/coding/coding-style.html
Created attachment 33199 [details] Add support for making sure { is on the same line as foreach
Landed in r46188