Patchwork D2275: formatting: enforce system headers before local headers

login
register
mail settings
Submitter phabricator
Date Feb. 15, 2018, 4:39 a.m.
Message ID <ed1c8325082596c71ef8528d98a0e04f@localhost.localdomain>
Download mbox | patch
Permalink /patch/27958/
State Not Applicable
Headers show

Comments

phabricator - Feb. 15, 2018, 4:39 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd97db568f7e7: formatting: enforce system headers before local headers (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2275?vs=5747&id=5751

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

AFFECTED FILES
  .clang-format

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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