diff options
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..c20132d8 --- /dev/null +++ b/.clang-format | |||
@@ -0,0 +1,52 @@ | |||
1 | AccessModifierOffset: -4 | ||
2 | AlignEscapedNewlinesLeft: true | ||
3 | AlignTrailingComments: false | ||
4 | AlignAfterOpenBracket: false | ||
5 | AllowAllParametersOfDeclarationOnNextLine: true | ||
6 | AllowShortBlocksOnASingleLine: false | ||
7 | AllowShortFunctionsOnASingleLine: Empty | ||
8 | AllowShortIfStatementsOnASingleLine: false | ||
9 | AllowShortLoopsOnASingleLine: false | ||
10 | AlwaysBreakAfterDefinitionReturnType: false | ||
11 | AlwaysBreakBeforeMultilineStrings: false | ||
12 | AlwaysBreakTemplateDeclarations: true | ||
13 | BinPackArguments: false | ||
14 | BinPackParameters: true | ||
15 | BreakBeforeBinaryOperators: false | ||
16 | BreakBeforeBraces: Mozilla | ||
17 | BreakBeforeTernaryOperators: false | ||
18 | BreakConstructorInitializersBeforeComma: false | ||
19 | ColumnLimit: 100 | ||
20 | CommentPragmas: '' | ||
21 | ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
22 | ConstructorInitializerIndentWidth: 4 | ||
23 | ContinuationIndentWidth: 4 | ||
24 | Cpp11BracedListStyle: true | ||
25 | DerivePointerBinding: false | ||
26 | ForEachMacros: ['foreach', 'Q_FOREACH', 'QBENCHMARK'] | ||
27 | IndentCaseLabels: true | ||
28 | IndentFunctionDeclarationAfterType: false | ||
29 | IndentWidth: 4 | ||
30 | Language: Cpp | ||
31 | MaxEmptyLinesToKeep: 2 | ||
32 | NamespaceIndentation: None | ||
33 | ObjCSpaceAfterProperty: true | ||
34 | ObjCSpaceBeforeProtocolList: true | ||
35 | PenaltyBreakBeforeFirstCallParameter: 100 | ||
36 | PenaltyBreakComment: 100 | ||
37 | PenaltyBreakFirstLessLess: 0 | ||
38 | PenaltyBreakString: 100 | ||
39 | PenaltyExcessCharacter: 1 | ||
40 | PenaltyReturnTypeOnItsOwnLine: 0 | ||
41 | PointerBindsToType: false | ||
42 | SpaceBeforeAssignmentOperators: true | ||
43 | SpaceBeforeParens: ControlStatements | ||
44 | SpaceInEmptyParentheses: false | ||
45 | SpacesBeforeTrailingComments: 1 | ||
46 | SpacesInAngles: false | ||
47 | SpacesInCStyleCastParentheses: false | ||
48 | SpacesInContainerLiterals: false | ||
49 | SpacesInParentheses: false | ||
50 | Standard: Cpp11 | ||
51 | TabWidth: 4 | ||
52 | UseTab: Never | ||