diff options
author | pgen <p.gen.progs@gmail.com> | 2016-11-30 23:38:54 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2016-11-30 23:40:40 +0100 |
commit | de5ee4dc720b664f34f3d189196dee53b5c45923 (patch) | |
tree | 7255ef613bedd36568934d50223fc0bf137957ef /.clang-format | |
parent | 45969a817f90bcc3688d2c23b48aace8f20c72fc (diff) |
Reformat and add comments
Use clang-format instead of indent.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..77936dc --- /dev/null +++ b/.clang-format @@ -0,0 +1,43 @@ +SortIncludes: 'false' +BasedOnStyle: Mozilla +AlignAfterOpenBracket: 'true' +AlignConsecutiveAssignments: 'true' +AlignConsecutiveDeclarations: 'true' +AlignOperands: 'true' +AlignEscapedNewlinesLeft: 'true' +AlignOperands: 'true' +AlignTrailingComments: 'true' +ReflowComments: 'true' +AllowAllParametersOfDeclarationOnNextLine: 'false' +AllowShortBlocksOnASingleLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: 'false' +AllowShortLoopsOnASingleLine: 'false' +AlwaysBreakBeforeMultilineStrings: 'true' +BinPackArguments: 'true' +BinPackParameters: 'true' +BreakBeforeBraces: Allman +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeTernaryOperators: 'true' +BreakConstructorInitializersBeforeComma: 'false' +ColumnLimit: '80' +ContinuationIndentWidth: '2' +DerivePointerAlignment: 'false' +IndentCaseLabels: 'true' +IndentWidth: '2' +KeepEmptyLinesAtTheStartOfBlocks: 'true' +Language: Cpp +MaxEmptyLinesToKeep: '1' +PointerAlignment: Middle +SpaceAfterCStyleCast: 'false' +SpaceBeforeAssignmentOperators: 'true' +SpaceBeforeParens: Never +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: 'false' +SpacesBeforeTrailingComments: '1' +SpacesInCStyleCastParentheses: 'false' +SpacesInParentheses: 'false' +SpacesInSquareBrackets: 'false' +TabWidth: '2' +UseTab: Never |