[llvm-commits] CVS: llvm/docs/CodingStandards.html

Misha Brukman brukman at cs.uiuc.edu
Tue Oct 26 08:45:24 PDT 2004



Changes in directory llvm/docs:

CodingStandards.html updated: 1.21 -> 1.22
---
Log message:

* Fix spelling and grammar errors
* Close <p> tags properly
* Break up paragraphs with blank lines, clean up text alignment
* Delete unbalanced "


---
Diffs of the changes:  (+14 -11)

Index: llvm/docs/CodingStandards.html
diff -u llvm/docs/CodingStandards.html:1.21 llvm/docs/CodingStandards.html:1.22
--- llvm/docs/CodingStandards.html:1.21	Thu Sep 23 11:03:48 2004
+++ llvm/docs/CodingStandards.html	Tue Oct 26 10:45:13 2004
@@ -372,16 +372,19 @@
 <a name="ci_class_struct">Use of <tt>class</tt> and <tt>struct</tt> Keywords</a>
 </div>
 <div class="doc_text">
-  <p>In C++ the <tt>class</tt> and <tt>struct</tt> keywoards can be used almost
-  interchangeably. The only difference is when they are used to declare a class:
-  <tt>class</tt> makes all members private by default while <tt>struct</tt>
-  makes all members public by defaut.<p>
-  <p>Unfortunately, not all compilers follow the rules and some will generate
-  different symbols based on whether <tt>class</tt> or <tt>struct</tt> was used
-  to declare the symbol. This can lead to problems at link time.</p>
-  <p>So, the rule for LLVM is this: "always use the <tt>class</tt> keyword, 
-  unless <b>all</b> members are public in which case <tt>struct</tt> is
-  allowed.</p>
+
+<p>In C++, the <tt>class</tt> and <tt>struct</tt> keywords can be used almost
+interchangeably. The only difference is when they are used to declare a class:
+<tt>class</tt> makes all members private by default while <tt>struct</tt> makes
+all members public by default.</p>
+
+<p>Unfortunately, not all compilers follow the rules and some will generate
+different symbols based on whether <tt>class</tt> or <tt>struct</tt> was used to
+declare the symbol.  This can lead to problems at link time.</p> 
+
+<p>So, the rule for LLVM is to always use the <tt>class</tt> keyword, unless
+<b>all</b> members are public, in which case <tt>struct</tt> is allowed.</p>
+
 </div>
 
 <!-- *********************************************************************** -->
@@ -635,7 +638,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2004/09/23 16:03:48 $
+  Last modified: $Date: 2004/10/26 15:45:13 $
 </address>
 
 </body>






More information about the llvm-commits mailing list