-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
.clang-format
47 lines (46 loc) · 1.28 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
---
BasedOnStyle: WebKit
Language: Cpp
AlignAfterOpenBracket: true
AlwaysBreakTemplateDeclarations: true
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: None
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE, TEST_CASE, SECTION ]
NamespaceIndentation: None
# Only for newer clang-format versions
#MacroBlockBegin: BEGINTESTFUNCIMPL
#MacroBlockEnd: ENDTESTFUNCIMPL
...