Add a .clang-format
[ctxopt.git] / .clang-format
blobddc9146a8ac0273771dbe607882ed719fff9fce5
1 SortIncludes: 'false'
2 BasedOnStyle: Mozilla
3 AlignAfterOpenBracket: 'true'
4 AlignConsecutiveAssignments: 'true'
5 AlignConsecutiveDeclarations: 'true'
6 AlignOperands: 'true'
7 AlignEscapedNewlinesLeft: 'true'
8 AlignOperands: 'true'
9 AlignTrailingComments: 'true'
10 ReflowComments: 'true'
11 AllowAllParametersOfDeclarationOnNextLine: 'false'
12 AllowShortBlocksOnASingleLine: 'false'
13 AllowShortCaseLabelsOnASingleLine: 'false'
14 AllowShortFunctionsOnASingleLine: None
15 AllowShortIfStatementsOnASingleLine: 'false'
16 AllowShortLoopsOnASingleLine: 'false'
17 AlwaysBreakBeforeMultilineStrings: 'false'
18 BinPackArguments: 'true'
19 BinPackParameters: 'true'
20 BreakBeforeBraces: Allman
21 BreakBeforeBinaryOperators: NonAssignment
22 BreakBeforeTernaryOperators: 'true'
23 BreakConstructorInitializersBeforeComma: 'false'
24 ColumnLimit: '80'
25 ContinuationIndentWidth: '2'
26 DerivePointerAlignment: 'false'
27 IndentCaseLabels: 'true'
28 IndentWidth: '2'
29 KeepEmptyLinesAtTheStartOfBlocks: 'true'
30 Language: Cpp
31 MaxEmptyLinesToKeep: '1'
32 PointerAlignment: Middle
33 SpaceAfterCStyleCast: 'false'
34 SpaceBeforeAssignmentOperators: 'true'
35 SpaceBeforeParens: Never
36 SpaceBeforeParens: ControlStatements
37 SpaceInEmptyParentheses: 'false'
38 SpacesBeforeTrailingComments: '1'
39 SpacesInCStyleCastParentheses: 'false'
40 SpacesInParentheses: 'false'
41 SpacesInSquareBrackets: 'false'
42 TabWidth: '2'
43 UseTab: Never
44 PenaltyBreakBeforeFirstCallParameter: '100'
45 PenaltyBreakAssignment: '150'