X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FCodingStandards.html;h=18ce223c428873eea04a025edf504559fa54266e;hb=6b15340ba5d035ee021f72a7c13a8df8cf8b45e7;hp=3eb9f0c5aefe3676997e2b9f28264fa28e8dd471;hpb=1b36d676d1dac887cba5572af66c2e11a737dc63;p=oota-llvm.git diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 3eb9f0c5aef..18ce223c428 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -1,107 +1,128 @@ - -A Few Coding Standards - - - - -
  A Few Coding Standards
+ + + + + A Few Coding Standards + + + +
+ A Few Coding Standards +
    -
  1. Introduction +
  2. Introduction
  3. Mechanical Source Issues
    1. Source Code Formatting -
        -
      1. Commenting -
      2. Comment Formatting -
      3. #include Style -
      4. Source Code Width -
      5. Use Spaces Instead of Tabs -
      6. Indent Code Consistently -
      +
        +
      1. Commenting
      2. +
      3. Comment Formatting
      4. +
      5. #include Style
      6. +
      7. Source Code Width
      8. +
      9. Use Spaces Instead of Tabs
      10. +
      11. Indent Code Consistently
      12. +
    2. Compiler Issues
        -
      1. Treat Compiler Warnings Like Errors -
      2. Which C++ features can I use? -
      3. Write Portable Code -
      -
    +
  4. Treat Compiler Warnings Like + Errors
  5. +
  6. Which C++ features can I use?
  7. +
  8. Write Portable Code
  9. +
+
  • Style Issues
    1. The High Level Issues
        -
      1. A Public Header File is a Module -
      2. #include as Little as Possible -
      3. Keep "internal" Headers Private -
      +
    2. A Public Header File is a + Module
    3. +
    4. #include as Little as Possible
    5. +
    6. Keep "internal" Headers + Private
    7. +
  • The Low Level Issues
      -
    1. Assert Liberally -
    2. Prefer Preincrement -
    3. Avoid endl -
    4. Exploit C++ to its Fullest -
    -
  • Writing Iterators - -
  • See Also -

    +

  • Assert Liberally
  • +
  • Prefer Preincrement
  • +
  • Avoid endl
  • +
  • Exploit C++ to its Fullest
  • + +
  • Writing Iterators
  • + +
  • See Also
  • + -
    -Introduction -
    -Mechanical Source Issues -
       -Source Code Formatting -


    Commenting


    Comment Formatting


    #include Style


    Source Code Width


    Use Spaces Instead of Tabs


    Indent Code Consistently

       -Compiler Issues -


    Treat Compiler Warnings Like Errors


    Which C++ features can I use?


    Write Portable Code

    -Style Issues -
       -The High Level Issues -


    A Public Header File is a Module


    #include as Little as Possible


    Keep "internal" Headers Private

       -The Low Level Issues -


    Assert Liberally


    Prefer Preincrement


    Avoid endl


    Exploit C++ to its Fullest

       -Writing Iterators -
    -See Also -

    - -
    Chris Lattner
    - - -Last modified: Thu Aug 7 16:44:33 CDT 2003 - -
    - + + + + +