summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.rst
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-12-02 11:53:27 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-12-02 11:53:27 +0000
commitafcc374524c09ed9be96783fc1310fdd7455dfa9 (patch)
tree67024de6bcc99946eb864c50b0233a23bfb49ac3 /docs/CodingStandards.rst
parent19b3f3d985ddf9d1cedbe14a4b58b62874c08adc (diff)
downloadllvm-afcc374524c09ed9be96783fc1310fdd7455dfa9.tar.gz
llvm-afcc374524c09ed9be96783fc1310fdd7455dfa9.tar.bz2
llvm-afcc374524c09ed9be96783fc1310fdd7455dfa9.tar.xz
Simplify the coding standards for #include ordering. The ordering is now
trivially achievable with an editor. I'll likely check in a silly python script to help with this too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r--docs/CodingStandards.rst11
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst
index 2b6a6acb1f..8003c12497 100644
--- a/docs/CodingStandards.rst
+++ b/docs/CodingStandards.rst
@@ -284,17 +284,10 @@ listed. We prefer these ``#include``\s to be listed in this order:
#. Main Module Header
#. Local/Private Headers
-#. ``llvm/*``
-#. ``llvm/Analysis/*``
-#. ``llvm/Assembly/*``
-#. ``llvm/Bitcode/*``
-#. ``llvm/CodeGen/*``
-#. ...
-#. ``llvm/Support/*``
-#. ``llvm/Config/*``
+#. ``llvm/...``
#. System ``#include``\s
-and each category should be sorted by name.
+and each category should be sorted lexicographically by the full path.
The `Main Module Header`_ file applies to ``.cpp`` files which implement an
interface defined by a ``.h`` file. This ``#include`` should always be included