aboutsummaryrefslogtreecommitdiffstats
path: root/docs/CodingStandards.html
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-10-26 15:45:13 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-10-26 15:45:13 +0000
commitedcc78aefcaf11f41ee9830816d342e184155906 (patch)
tree9215ab315ae3e9b9303bb1af02e1df2641ba5125 /docs/CodingStandards.html
parent52c09d76564d6fb24444c4d56bc8978e042e72f9 (diff)
downloadexternal_llvm-edcc78aefcaf11f41ee9830816d342e184155906.zip
external_llvm-edcc78aefcaf11f41ee9830816d342e184155906.tar.gz
external_llvm-edcc78aefcaf11f41ee9830816d342e184155906.tar.bz2
* Fix spelling and grammar errors
* Close <p> tags properly * Break up paragraphs with blank lines, clean up text alignment * Delete unbalanced " git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.html')
-rw-r--r--docs/CodingStandards.html23
1 files changed, 13 insertions, 10 deletions
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html
index 8171130..51c8f23 100644
--- a/docs/CodingStandards.html
+++ b/docs/CodingStandards.html
@@ -372,16 +372,19 @@ to support it.</p>
<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>
<!-- *********************************************************************** -->