blob: 6b1cb1df06edb82a32d95e01a212f9da3ee5c232 [file] [log] [blame]
hardlyb1e7e142014-08-06 00:43:51 +03001# http://clang.llvm.org/docs/ClangFormatStyleOptions.html
2
3DisableFormat: false
4Language: Cpp
5Standard: Cpp03
6IndentWidth: 4
7TabWidth: 4
8UseTab: Never
9ColumnLimit: 100
10ReflowComments: false
11SortIncludes: false
12
13AlignConsecutiveAssignments: true
14AlignConsecutiveDeclarations: true
15AlignEscapedNewlinesLeft: false
16AlignOperands: true
17AlignTrailingComments: true
18AlignAfterOpenBracket: true
19DerivePointerAlignment: false
20PointerAlignment: Left
21IndentCaseLabels: true
22ContinuationIndentWidth: 8
23NamespaceIndentation: Inner
24AccessModifierOffset: -4
25
26SpaceAfterControlStatementKeyword: false
27SpaceAfterCStyleCast: false
28SpaceBeforeAssignmentOperators: true
29SpaceBeforeParens: Never
30SpaceInEmptyParentheses: false
31SpacesBeforeTrailingComments: 1
32SpacesInAngles: false
33SpacesInCStyleCastParentheses: false
34SpacesInContainerLiterals: false
35SpacesInParentheses: false
36SpacesInSquareBrackets: false
37Cpp11BracedListStyle: true
38
39KeepEmptyLinesAtTheStartOfBlocks: false
40MaxEmptyLinesToKeep: 1
41BinPackArguments: true
42BinPackParameters: true
43AlwaysBreakAfterReturnType: None
44AlwaysBreakAfterDefinitionReturnType: None
45AlwaysBreakTemplateDeclarations: true
46BreakConstructorInitializersBeforeComma: true
47ConstructorInitializerAllOnOneLineOrOnePerLine: false
48ConstructorInitializerIndentWidth: 8
49
50AllowShortIfStatementsOnASingleLine: false
51AllowShortLoopsOnASingleLine: false
52AllowShortBlocksOnASingleLine: true
53AllowShortCaseLabelsOnASingleLine: true
54AllowAllParametersOfDeclarationOnNextLine: true
55AllowShortFunctionsOnASingleLine: All
56
57BreakBeforeBinaryOperators: false
58BreakBeforeTernaryOperators: false
59BreakStringLiterals: true
60BreakBeforeBraces: Custom
61BraceWrapping:
62 AfterClass: true
63 AfterEnum: true
64 AfterNamespace: true
65 AfterStruct: true
66 AfterUnion: true
67
68 BeforeCatch: false
69 BeforeElse: false
70 IndentBraces: false
71 AfterFunction: false
72 AfterControlStatement: false
73
74# penalties not thought of yet
75PenaltyBreakBeforeFirstCallParameter: 19
76PenaltyBreakComment: 60
77PenaltyBreakString: 1000
78PenaltyBreakFirstLessLess: 120
79PenaltyExcessCharacter: 1000000
80PenaltyReturnTypeOnItsOwnLine: 1000