aboutsummaryrefslogtreecommitdiffstats
path: root/docs/CodingStandards.html
Commit message (Collapse)AuthorAgeFilesLines
* Tweak, raw_ostream is a ostream, not iostream replacementDaniel Dunbar2009-07-241-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77017 91177308-0d34-0410-b5e6-96231b3b80d8
* CodingStandards: Emphasize use of raw_ostream more.Daniel Dunbar2009-07-241-3/+24
| | | | | | | - Chris, please approve. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77010 91177308-0d34-0410-b5e6-96231b3b80d8
* fix some wording problems Daniel pointed out, make a example actually real.Chris Lattner2009-07-221-20/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76751 91177308-0d34-0410-b5e6-96231b3b80d8
* fix typo noticed by DuncanChris Lattner2009-07-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76747 91177308-0d34-0410-b5e6-96231b3b80d8
* remove Bill from the author list: his contribution (describing llvm::Ostream Chris Lattner2009-07-221-2/+1
| | | | | | | and friends) has been removed awhile ago. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76724 91177308-0d34-0410-b5e6-96231b3b80d8
* add some more topics to the coding standards doc:Chris Lattner2009-07-221-33/+456
| | | | | | | | | | | | * Use Early Exits and 'continue' to Simplify Code * Turn Predicate Loops into Predicate Functions * Spaces Before Parentheses * Namespace Indentation * Anonymous Namespaces git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76723 91177308-0d34-0410-b5e6-96231b3b80d8
* be explicit about making comments real sentences.Chris Lattner2009-07-121-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75406 91177308-0d34-0410-b5e6-96231b3b80d8
* got confused againChris Lattner2009-06-301-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74514 91177308-0d34-0410-b5e6-96231b3b80d8
* fix some issues Jeff Yasskin noticedChris Lattner2009-06-301-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74512 91177308-0d34-0410-b5e6-96231b3b80d8
* add a note about re-evaluating end() every time through a loop.Chris Lattner2009-06-301-0/+63
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74511 91177308-0d34-0410-b5e6-96231b3b80d8
* tt'ify.Chris Lattner2009-03-231-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67505 91177308-0d34-0410-b5e6-96231b3b80d8
* VC++ 6.0 is not future work :)Chris Lattner2009-03-231-64/+5
| | | | | | | Do not recommend llvm::OStream anymore. Use raw_ostream or MemoryBuffer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67504 91177308-0d34-0410-b5e6-96231b3b80d8
* So *this* is where all the trailing whitespace in file header comments comeMisha Brukman2009-01-021-2/+2
| | | | | | | | | from: copy-pasted straight from the coding standards doc! Oh, the irony. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61586 91177308-0d34-0410-b5e6-96231b3b80d8
* * <div align=center> is not valid HTML 4.01 - removed alignmentMisha Brukman2008-12-111-15/+19
| | | | | | | | | * <sup> cannot appear inside a <pre> - replaced <pre> with <tt> and <br> * Added standard "Notes" section * Sprinkled fixed-width <tt> tags in a few places for consistency git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60889 91177308-0d34-0410-b5e6-96231b3b80d8
* Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.Misha Brukman2008-12-111-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60880 91177308-0d34-0410-b5e6-96231b3b80d8
* s/A Few Coding Standards/LLVM Coding Standards/gMisha Brukman2008-12-101-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60859 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spelling mistake.Nick Lewycky2008-11-291-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60250 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a few HTML tidiness issues.Dan Gohman2008-11-241-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59966 91177308-0d34-0410-b5e6-96231b3b80d8
* Not that using stream headers other than iostream is allowed.Matthijs Kooijman2008-07-301-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54209 91177308-0d34-0410-b5e6-96231b3b80d8
* clarify :)Chris Lattner2008-07-081-0/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53218 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a standard for control-flow unreachable assertions in functions that returnNick Lewycky2008-05-311-0/+23
| | | | | | | values, so as to avoid warnings on some platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51831 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't attribute in file headers anymore. See llvmdev for the Chris Lattner2007-12-291-8/+6
| | | | | | | discussion of this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45409 91177308-0d34-0410-b5e6-96231b3b80d8
* Update links.Chris Lattner2007-11-091-6/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43964 91177308-0d34-0410-b5e6-96231b3b80d8
* Clarify some of the iostreams stuff.Bill Wendling2007-11-061-13/+13
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43766 91177308-0d34-0410-b5e6-96231b3b80d8
* Validation fixesBill Wendling2007-09-221-5/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42229 91177308-0d34-0410-b5e6-96231b3b80d8
* Subversionify the documentation.Reid Spencer2007-07-091-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38442 91177308-0d34-0410-b5e6-96231b3b80d8
* clarify the 'developed by' lineChris Lattner2007-02-191-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34400 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a grammar ambiguity noticed by DuncanChris Lattner2007-02-101-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34151 91177308-0d34-0410-b5e6-96231b3b80d8
* Removed reference to "cnull" because typical users shouldn't need to useBill Wendling2007-01-041-6/+0
| | | | | | | it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32869 91177308-0d34-0410-b5e6-96231b3b80d8
* Added example of how to code print() methods so that they will disappearBill Wendling2006-12-171-5/+18
| | | | | | | from the code if "cnull" is passed into them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32641 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed some formatting.Bill Wendling2006-12-091-28/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32392 91177308-0d34-0410-b5e6-96231b3b80d8
* Another example of using the llvm IO streams.Bill Wendling2006-12-091-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32391 91177308-0d34-0410-b5e6-96231b3b80d8
* Add documentation for how to use the new LLVM streams.Bill Wendling2006-12-091-2/+74
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32390 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a couple typos.Jim Laskey2006-07-311-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29416 91177308-0d34-0410-b5e6-96231b3b80d8
* Add some adviceChris Lattner2006-07-271-8/+26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29324 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes docs for llvm.cs.uiuc.edu -> llvm.orgReid Spencer2006-03-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26746 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a section about using namespaces.Chris Lattner2006-01-011-20/+35
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25054 91177308-0d34-0410-b5e6-96231b3b80d8
* Documentation which contains smileys won't be taken seriously by some people.Misha Brukman2004-12-041-7/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18474 91177308-0d34-0410-b5e6-96231b3b80d8
* Use <tt> around "#include" and "std::endl"Misha Brukman2004-10-261-20/+21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17258 91177308-0d34-0410-b5e6-96231b3b80d8
* Use <tt> around header namesMisha Brukman2004-10-261-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17256 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fix spelling and grammar errorsMisha Brukman2004-10-261-10/+13
| | | | | | | | | * 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
* Add a blurb about the use of class vs. struct keyword in class decls.Reid Spencer2004-09-231-0/+18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16500 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix grammar, eliminate double parenthesized sentence fragment.Misha Brukman2004-07-281-4/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15313 91177308-0d34-0410-b5e6-96231b3b80d8
* * Wrap code listings in <div class="doc_code">Misha Brukman2004-07-281-38/+49
| | | | | | | | * Wrap keywords in <tt> * Wrap lines at 80 cols git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15312 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed broken links.Tanya Lattner2004-06-221-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14313 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix broken internal link.Misha Brukman2004-06-031-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14002 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the coding standards, removign the bit about avoiding exceptions andChris Lattner2004-05-231-381/+31
| | | | | | | | | | | rtti (they shouldn't be used in the main compiler, but that's because optimizations aren't allowed to fail!) Remove the big section about iterators, because people who do not know what they are doing shouldn't be writing them. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13670 91177308-0d34-0410-b5e6-96231b3b80d8
* Add proper footer since this file is HTML-4.01 compliant.Misha Brukman2004-05-121-6/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13498 91177308-0d34-0410-b5e6-96231b3b80d8
* Merged in RELEASE_1.John Criswell2003-10-271-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9538 91177308-0d34-0410-b5e6-96231b3b80d8
* * Use HTML 4.01 Strict DTDMisha Brukman2003-10-241-267/+385
| | | | | | | | | * Stop using UTF-8, the webserver sends out iso-8859-1 anyway * Use style sheets and <div>s instead of <font> tags * Stop using <ul> for layout git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9474 91177308-0d34-0410-b5e6-96231b3b80d8