diff --git a/styleguide/cppguide.html b/styleguide/cppguide.html index f37c836c1d..768de1a635 100644 --- a/styleguide/cppguide.html +++ b/styleguide/cppguide.html @@ -467,6 +467,10 @@ as follows:

files. +

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.

+

With the preferred ordering, if dir2/foo2.h omits any necessary includes, the build of dir/foo.cc @@ -508,6 +512,7 @@ might look like this:

#include <sys/types.h> #include <unistd.h> + #include <hash_map> #include <vector>