apparently variable naming conventions never got added, document the

prevailing convention.  Thanks to Dave Zarzycki for the patch.

llvm-svn: 137497
This commit is contained in:
Chris Lattner 2011-08-12 19:49:16 +00:00
parent 2c945b3d88
commit 30e697ebaf
1 changed files with 6 additions and 2 deletions

View File

@ -854,8 +854,12 @@ rules:</p>
<ul>
<li><p><b>Type names</b> (including classes, structs, enums, typedefs, etc)
should be nouns and start with an upper-case letter (e.g.
<tt>TextFileReader</tt>).</p></li>
should be nouns and start with an upper-case letter (e.g.
<tt>TextFileReader</tt>).</p></li>
<li><p><b>Variable names</b> should be nouns (as they represent state). The
name should be camel case, and start with an upper case letter (e.g.
<tt>Leader</tt> or <tt>Boats</tt>).</p></li>
<li><p><b>Function names</b> should be verb phrases (as they represent
actions), and command-like function should be imperative. The name should