diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-28 22:43:05 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-28 22:43:05 +0100 |
commit | 0dd44f2831e49b150c14deaa5d6d3ed90026f01d (patch) | |
tree | ced5b062f910f7a6e4152166f10e622693f5e154 /.clang-format | |
parent | 35a301aa644d0be234f2920f447fe1a3b4a42b26 (diff) | |
parent | 7c345c6a4ec7aa666b1a69895b2c814b6d8f3dd3 (diff) |
Merge .gitignore.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..fe6ba0c --- /dev/null +++ b/.clang-format @@ -0,0 +1,42 @@ +Language: Cpp +Standard: Cpp11 + +# Use SmartTabs +UseTab: ForIndentation +IndentWidth: 4 +TabWidth: 4 +ConstructorInitializerIndentWidth: 4 + +NamespaceIndentation: None + +# Use Allman brace style. +BreakBeforeBraces: Allman + +# CTOR initializers should be +# Class::Class() +# : Foo() +# , bar(1 ,2) +# , bas("hello") +BreakConstructorInitializersBeforeComma: true + +AccessModifierOffset: -4 +AlignAfterOpenBracket: false + +# Always expand curlies. +AllowShortFunctionsOnASingleLine: None +AllowShortLoopsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false + +# Do not indent case labels +IndentCaseLabels: false + +ConstructorInitializerAllOnOneLineOrOnePerLine: true +AllowAllParametersOfDeclarationOnNextLine: true + +DerivePointerAlignment: false +PointerAlignment: Left + +SpaceBeforeAssignmentOperators: true +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceBeforeParens: Never |