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

Differential Revision: https://phab.mercurial-scm.org/D1129
This commit is contained in:
Augie Fackler 2015-01-24 17:04:25 -05:00
parent 97fa443439
commit 8616945a99
2 changed files with 9 additions and 0 deletions

8
.clang-format Normal file
View File

@ -0,0 +1,8 @@
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: ForIndentation
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false

View File

@ -39,6 +39,7 @@ Prevent adding new files in the root directory accidentally.
$ testrepohg files 'glob:*'
.arcconfig
.clang-format
.editorconfig
.hgignore
.hgsigs