[webkit-dev] Coding Style: Clarify some cases with spacing

Kenneth Christiansen kenneth.christiansen at openbossa.org
Tue Jul 21 16:05:04 PDT 2009


Hi there,

In bug 27499 (https://bugs.webkit.org/show_bug.cgi?id=27499) it was
pointed out that the coding style guide doesn't clarify whether it is
allowed to place a space before a comma or semicolon in a control
condition or in functions.

Thus asking the question whether the three following code snippets are
should be discouraged by the coding style guide or not:

for (int i = 0 ; i < 10 ; i++)
    doSomething();


// Qt's foreach
foreach (QString &item , items)
    doSomething();

f(a , b);

Personally I would opt for discouraging this, which David Levin points
out to be more or less the current project style.

If we can agree on this, I can patch the coding style guide.

Cheers,
Kenneth


More information about the webkit-dev mailing list