mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Made include ordering/organization more explicit in style guide (#86)
This commit is contained in:
committed by
Peter Johnson
parent
d76f0d4022
commit
c7c011813f
@@ -467,6 +467,10 @@ as follows:</p>
|
||||
files.</li>
|
||||
</ol>
|
||||
|
||||
<p>C and C++ standard library includes are considered system files in their
|
||||
respective group. Includes within one group should not have an empty line
|
||||
separating them, while there should be an empty line between groups.</p>
|
||||
|
||||
<p>With the preferred ordering, if
|
||||
<code><var>dir2/foo2</var>.h</code> omits any necessary
|
||||
includes, the build of <code><var>dir/foo</var>.cc</code>
|
||||
@@ -508,6 +512,7 @@ might look like this:</p>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <hash_map>
|
||||
#include <vector>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user