Patchwork D2275: formatting: enforce system headers before local headers

login
register
mail settings
Submitter phabricator
Date Feb. 15, 2018, 2:15 a.m.
Message ID <differential-rev-PHID-DREV-twnlyiwo2zrf7pcwbopz-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27954/
State Superseded
Headers show

Comments

phabricator - Feb. 15, 2018, 2:15 a.m.
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




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

Patch

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