[llvm-dev] LLVM coding standards and order of includes

Russell Wallace via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 10 08:06:31 PDT 2015


According to the LLVM coding standards,

Immediately after the header file comment
<http://llvm.org/docs/CodingStandards.html#header-file-comment> (and
include guards if working on a header file), the minimal list of #includes
<http://llvm.org/docs/CodingStandards.html#minimal-list-of-includes>required
by the file should be listed. We prefer these #includes to be listed in
this order:

   1. Main Module Header
   2. Local/Private Headers
   3. llvm/...
   4. System #includes

If a program is using LLVM, and also using a third-party library such as
GMP, where would the coding standard have the GMP include be placed
relative to the above order?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150910/5ccd183c/attachment.html>


More information about the llvm-dev mailing list