Reviewed by Dan Bernstein.
change style guide to pre-increment in for-loops
https://bugs.webkit.org/show_bug.cgi?id=59619
This matches what a number of reviewers have been asking
for in code reviews.
* coding/coding-style.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85068
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-04-27 Ojan Vafai <ojan@chromium.org>
+
+ Reviewed by Dan Bernstein.
+
+ change style guide to pre-increment in for-loops
+ https://bugs.webkit.org/show_bug.cgi?id=59619
+
+ This matches what a number of reviewers have been asking
+ for in code reviews.
+
+ * coding/coding-style.html:
+
2011-04-26 Carol Szabo <carol.szabo@nokia.com>
Reviewed by Tor Arne Vestbø.
<li>Do not place spaces before comma and semicolon.
<h4 class="right">Right:</h4>
<pre class="code">
-for (int i = 0; i < 10; i++)
+for (int i = 0; i < 10; ++i)
doSomething();
f(a, b);
<h4 class="wrong">Wrong:</h4>
<pre class="code">
-for (int i = 0 ; i < 10 ; i++)
+for (int i = 0 ; i < 10 ; ++i)
doSomething();
f(a , b) ;
...
}
-for (int i = 0; i < 10; i++) {
+for (int i = 0; i < 10; ++i) {
...
}
</pre>