Patchwork D1113: clang-format: configuration for the clang-format source formatter

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 1:46 a.m.
Message ID <dde38103ed970c07c798718eb4453d6c@localhost.localdomain>
Download mbox | patch
Permalink /patch/25041/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 1:46 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGebfbf4e48d65: clang-format: configuration for the clang-format source formatter (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1113?vs=2821&id=2854

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

AFFECTED FILES
  .clang-format
  tests/test-check-code.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -39,6 +39,7 @@ 
 
   $ testrepohg files 'glob:*'
   .arcconfig
+  .clang-format
   .editorconfig
   .hgignore
   .hgsigs
diff --git a/.clang-format b/.clang-format
new file mode 100644
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,8 @@ 
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: ForIndentation
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+AllowShortBlocksOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false