Add a git pre-commit hook running clang-format

This commit is contained in:
vlj 2016-08-26 15:34:28 +02:00
parent bb66b97251
commit 1ede5cbc4c
3 changed files with 498 additions and 3 deletions

View file

@ -1,5 +1,5 @@
Standard: Cpp11
UseTab: ForIndentation
UseTab: Always
TabWidth: 1
IndentWidth: 1
AccessModifierOffset: -1
@ -7,7 +7,7 @@ PointerAlignment: Left
NamespaceIndentation: All
ColumnLimit: 0
BreakBeforeBraces: Allman
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializersBeforeComma: false
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: false
AlwaysBreakTemplateDeclarations: true
@ -20,7 +20,7 @@ Cpp11BracedListStyle: true
IndentCaseLabels: false
SortIncludes: false
ReflowComments: true
AlignConsecutiveAssignments: true
AlignConsecutiveAssignments: false
AlignTrailingComments: true
AlignAfterOpenBracket: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false