diff options
author | dim <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-10-20 21:10:27 +0000 |
commit | 7b3392326c40c3c20697816acae597ba7b3144eb (patch) | |
tree | 2cbcf22585e99f8a87d12d5ff94f392c0d266819 /docs/CodingStandards.html | |
parent | 1176aa52646fe641a4243a246aa7f960c708a274 (diff) | |
download | FreeBSD-src-7b3392326c40c3c20697816acae597ba7b3144eb.zip FreeBSD-src-7b3392326c40c3c20697816acae597ba7b3144eb.tar.gz |
Vendor import of llvm release_30 branch r142614:
http://llvm.org/svn/llvm-project/llvm/branches/release_30@142614
Diffstat (limited to 'docs/CodingStandards.html')
-rw-r--r-- | docs/CodingStandards.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 139bbdb..3153a6e 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -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 @@ -1522,7 +1526,7 @@ something.</p> <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2011-04-23 02:30:22 +0200 (Sat, 23 Apr 2011) $ + Last modified: $Date: 2011-08-12 21:49:16 +0200 (Fri, 12 Aug 2011) $ </address> </body> |