changeset 34798:e33381d95930

clang-format: configuration for the clang-format source formatter Differential Revision: https://phab.mercurial-scm.org/D1129
author Augie Fackler <raf@durin42.com>
date Sat, 24 Jan 2015 17:04:25 -0500
parents 284fa44f7f39
children 0b46352384a0
files .clang-format tests/test-check-code.t
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.clang-format	Sat Jan 24 17:04:25 2015 -0500
@@ -0,0 +1,8 @@
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: ForIndentation
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false
+AllowShortBlocksOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false
--- a/tests/test-check-code.t	Fri Oct 06 06:48:43 2017 -0700
+++ b/tests/test-check-code.t	Sat Jan 24 17:04:25 2015 -0500
@@ -39,6 +39,7 @@
 
   $ testrepohg files 'glob:*'
   .arcconfig
+  .clang-format
   .editorconfig
   .hgignore
   .hgsigs