From: Chandler Carruth Date: Sun, 2 Dec 2012 11:53:27 +0000 (+0000) Subject: Simplify the coding standards for #include ordering. The ordering is now X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=494cfc0786754a3a01b13f5e9936ace98644e1f5;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst index 2b6a6ac..8003c12 100644 --- a/llvm/docs/CodingStandards.rst +++ b/llvm/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