From c7c011813f6a440be5d95a9da0f3d6089fca46d8 Mon Sep 17 00:00:00 2001
From: Tyler Veness
Date: Tue, 31 May 2016 23:46:44 -0700
Subject: [PATCH] Made include ordering/organization more explicit in style
guide (#86)
---
styleguide/cppguide.html | 5 +++++
1 file changed, 5 insertions(+)
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>