Changes in directory llvm/docs:
CodingStandards.html updated: 1.27 -> 1.28 --- Log message: Add some advice --- Diffs of the changes: (+27 -9) CodingStandards.html | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) Index: llvm/docs/CodingStandards.html diff -u llvm/docs/CodingStandards.html:1.27 llvm/docs/CodingStandards.html:1.28 --- llvm/docs/CodingStandards.html:1.27 Mon Mar 13 23:39:39 2006 +++ llvm/docs/CodingStandards.html Wed Jul 26 23:24:14 2006 @@ -44,10 +44,11 @@ </ol></li> <li><a href="#micro">The Low Level Issues</a> <ol> - <li><a href="#hl_assert">Assert Liberally</a></li> - <li><a href="#hl_ns_std">Do not use 'using namespace std'</a></li> - <li><a href="#hl_preincrement">Prefer Preincrement</a></li> - <li><a href="#hl_avoidendl">Avoid <tt>std::endl</tt></a></li> + <li><a href="#ll_assert">Assert Liberally</a></li> + <li><a href="#ll_ns_std">Do not use 'using namespace std'</a></li> + <li><a href="#ll_virtual_anch">Provide a virtual method anchor for clases in headers</a></li> + <li><a href="#ll_preincrement">Prefer Preincrement</a></li> + <li><a href="#ll_avoidendl">Avoid <tt>std::endl</tt></a></li> </ol></li> </ol></li> <li><a href="#seealso">See Also</a></li> @@ -489,7 +490,7 @@ <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> - <a name="hl_assert">Assert Liberally</a> + <a name="ll_assert">Assert Liberally</a> </div> <div class="doc_text"> @@ -537,7 +538,7 @@ <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> - <a name="hl_ns_std">Do not use 'using namespace std'</a> + <a name="ll_ns_std">Do not use 'using namespace std'</a> </div> <div class="doc_text"> @@ -572,7 +573,24 @@ <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> - <a name="hl_preincrement">Prefer Preincrement</a> + <a name="ll_virtual_anch">Provide a virtual method anchor for clases in headers</a> +</div> + +<div class="doc_text"> + +<p>If a class is defined in a header file and has a v-table (either it has +virtual methods or it derives from classes with virtual methods), it must +always have at least one out-of-line virtual method in the class. Without +this, the compiler will copy the vtable and RTTI into every .o file that +#includes the header, bloating .o file sizes and increasing link times. +</p> + +</div> + + +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> + <a name="ll_preincrement">Prefer Preincrement</a> </div> <div class="doc_text"> @@ -592,7 +610,7 @@ <!-- _______________________________________________________________________ --> <div class="doc_subsubsection"> - <a name="hl_avoidendl">Avoid <tt>std::endl</tt></a> + <a name="ll_avoidendl">Avoid <tt>std::endl</tt></a> </div> <div class="doc_text"> @@ -654,7 +672,7 @@ <a href="mailto:[EMAIL PROTECTED]">Chris Lattner</a><br> <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2006/03/14 05:39:39 $ + Last modified: $Date: 2006/07/27 04:24:14 $ </address> </body> _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits