diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-26 15:18:18 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-26 15:18:18 +0100 |
commit | 336878be882934d283fb247e7d5a426196d62f9d (patch) | |
tree | c3324955c8da28c01305ec3670541db7b01cab66 | |
parent | 035ce965d9a9312f567ed3866affe24d5d4c25a9 (diff) |
first shot at a project wide .clang-format file.
-rw-r--r-- | .clang-format | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..e31e069 --- /dev/null +++ b/.clang-format @@ -0,0 +1,41 @@ +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 |