formatting: enforce system headers before local headers
authorAugie Fackler <augie@google.com>
Wed, 14 Feb 2018 21:12:48 -0500
changeset 36224 d0a3fa849cb8
parent 36223 2e07dc514073
child 36225 6c87d4113a90
formatting: enforce system headers before local headers Differential Revision: https://phab.mercurial-scm.org/D2275
.clang-format
--- a/.clang-format	Mon Feb 12 17:20:20 2018 -0800
+++ b/.clang-format	Wed Feb 14 21:12:48 2018 -0500
@@ -6,3 +6,8 @@
 IndentCaseLabels: false
 AllowShortBlocksOnASingleLine: false
 AllowShortFunctionsOnASingleLine: false
+IncludeCategories:
+  - Regex:           '^<'
+    Priority:        1
+  - Regex:           '^"'
+    Priority:        2