-
Notifications
You must be signed in to change notification settings - Fork 10
/
.clang-format
50 lines (49 loc) · 1.36 KB
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
BasedOnStyle: WebKit
Language: Cpp
AlignAfterOpenBracket: true
AlwaysBreakTemplateDeclarations: true
SpaceAfterTemplateKeyword: false
BreakBeforeBraces: Custom
BreakConstructorInitializersBeforeComma: true
BreakBeforeBinaryOperators: NonAssignment
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
ColumnLimit: 120
Standard: Cpp11
IndentWidth: 4
TabWidth: 8
UseTab: Never
PointerAlignment: Left
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterControlStatementKeyword: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
IncludeCategories:
- Regex: '^<boost/'
Priority: 1
- Regex: '^<Q'
Priority: 2
AllowShortFunctionsOnASingleLine: Empty
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE, TEST_CASE, SECTION ]
NamespaceIndentation: None
BinPackArguments: true
BinPackParameters: true
# Only for newer clang-format versions
#MacroBlockBegin: BEGINTESTFUNCIMPL
#MacroBlockEnd: ENDTESTFUNCIMPL
...