diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-21 14:25:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-21 22:14:51 +0200 |
commit | a0135713be0c58422d63125bef41e795b948a8e9 (patch) | |
tree | 98f459b660cf635c1eacaf7f7104c4c960d20336 | |
parent | 2899324acd4531803cfd678aa16ed16ef85c6083 (diff) |
add dot.clang-format
-rw-r--r-- | .clang-format | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..a3b53a12 --- /dev/null +++ b/.clang-format @@ -0,0 +1,46 @@ +BasedOnStyle: LLVM +AccessModifierOffset: 0 +AlignEscapedNewlines: Right +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: All +AllowShortIfStatementsOnASingleLine: WithoutElse +AllowShortLoopsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: MultiLine +BinPackParameters: false +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Allman +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 100 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: false +DerivePointerAlignment: false +IndentCaseLabels: false +IndentWidth: 4 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: false +Language: Cpp +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +PenaltyBreakBeforeFirstCallParameter: 45 +PenaltyBreakComment: 40 +PenaltyBreakFirstLessLess: 50 +PenaltyBreakString: 35 +PenaltyExcessCharacter: 1 +PenaltyReturnTypeOnItsOwnLine: 20 +PenaltyBreakAssignment: 15 +PointerAlignment: Left +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +Standard: Cpp11 +TabWidth: 4 +UseTab: Never |