enable using QWT instead of KChart under unix (by uncommenting one line in pro-file)
[sdk/tools/heaptrack.git] / .clang-format
1 ---
2 BasedOnStyle:  WebKit
3 Language:        Cpp
4 AlignAfterOpenBracket: true
5 AlwaysBreakTemplateDeclarations: true
6 BreakBeforeBraces: Custom
7 BreakConstructorInitializersBeforeComma: true
8 BreakBeforeBinaryOperators: NonAssignment
9 BraceWrapping:
10     AfterClass: true
11     AfterControlStatement: false
12     AfterEnum: true
13     AfterFunction: true
14     AfterNamespace: false
15     AfterObjCDeclaration: false
16     AfterStruct: true
17     AfterUnion: false
18     BeforeCatch: false
19     BeforeElse: false
20     IndentBraces: false
21 ColumnLimit: 120
22 Standard:        Cpp11
23 IndentWidth:     4
24 TabWidth:        8
25 UseTab:          Never
26 PointerAlignment: Left
27 SpacesInParentheses: false
28 SpacesInAngles:  false
29 SpaceInEmptyParentheses: false
30 SpacesInCStyleCastParentheses: false
31 SpaceAfterControlStatementKeyword: true
32 SpaceBeforeAssignmentOperators: true
33 ContinuationIndentWidth: 4
34 Cpp11BracedListStyle: true
35 IncludeCategories:
36   - Regex:           '^<boost/'
37     Priority:        1
38   - Regex:           '^<Q'
39     Priority:        2
40 AllowShortFunctionsOnASingleLine: None
41 ForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE, TEST_CASE, SECTION ]
42 NamespaceIndentation: None
43 # Only for newer clang-format versions
44 #MacroBlockBegin: BEGINTESTFUNCIMPL
45 #MacroBlockEnd: ENDTESTFUNCIMPL
46 ...
47