D2275: formatting: enforce system headers before local headers

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 15 02:15:18 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2275

AFFECTED FILES
  .clang-format

CHANGE DETAILS

diff --git a/.clang-format b/.clang-format
--- a/.clang-format
+++ b/.clang-format
@@ -6,3 +6,8 @@
 IndentCaseLabels: false
 AllowShortBlocksOnASingleLine: false
 AllowShortFunctionsOnASingleLine: false
+IncludeCategories:
+  - Regex:           '^<'
+    Priority:        1
+  - Regex:           '^"'
+    Priority:        2



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list