mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
apparently variable naming conventions never got added, document the
prevailing convention. Thanks to Dave Zarzycki for the patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a5ffbfa6e
commit
c513309224
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user