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.

llvm-svn: 169107
This commit is contained in:
Chandler Carruth 2012-12-02 11:53:27 +00:00
parent 0bd335efcd
commit 494cfc0786
1 changed files with 2 additions and 9 deletions

View File

@ -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