Title: [128499] trunk/Websites/webkit.org
Revision
128499
Author
[email protected]
Date
2012-09-13 13:17:42 -0700 (Thu, 13 Sep 2012)

Log Message

Add a style guide rule for signed and unsigned int
https://bugs.webkit.org/show_bug.cgi?id=96682

Reviewed by Geoffrey Garen.

Add a rule per http://lists.webkit.org/pipermail/webkit-dev/2012-September/022199.html.

* coding/coding-style.html:

Modified Paths

Diff

Modified: trunk/Websites/webkit.org/ChangeLog (128498 => 128499)


--- trunk/Websites/webkit.org/ChangeLog	2012-09-13 20:08:53 UTC (rev 128498)
+++ trunk/Websites/webkit.org/ChangeLog	2012-09-13 20:17:42 UTC (rev 128499)
@@ -1,3 +1,14 @@
+2012-09-13  Ryosuke Niwa  <[email protected]>
+
+        Add a style guide rule for signed and unsigned int
+        https://bugs.webkit.org/show_bug.cgi?id=96682
+
+        Reviewed by Geoffrey Garen.
+
+        Add a rule per http://lists.webkit.org/pipermail/webkit-dev/2012-September/022199.html.
+
+        * coding/coding-style.html:
+
 2012-08-30  Benjamin Poulain  <[email protected]>
 
         Replace JSC::UString by WTF::String

Modified: trunk/Websites/webkit.org/coding/coding-style.html (128498 => 128499)


--- trunk/Websites/webkit.org/coding/coding-style.html	2012-09-13 20:08:53 UTC (rev 128498)
+++ trunk/Websites/webkit.org/coding/coding-style.html	2012-09-13 20:17:42 UTC (rev 128499)
@@ -1048,6 +1048,26 @@
 
 </ol>
 
+<h3 id="types">Types</h3>
+
+<ol>
+<li id="types-unsigned">
+Omit "int" when using "unsigned" modifier. Do not use "signed" modifier. Use "int" by itself instead.
+<h4 class="right">Right:</h4>
+<pre class="code">
+unsigned a;
+int b;
+</pre>
+
+<h4 class="wrong">Wrong:</h4>
+<pre class="code">
+unsigned int a; // Doesn't omit "int".
+signed b; // Uses "singed" instead of "int".
+signed int c; // Doesn't omit "signed".
+</pre>
+</li>
+</ol>
+
 <h3 id="classes">Classes</h3>
 
 <ol>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to