1---
2BasedOnStyle: WebKit
3
4Language: Cpp
5Standard: Cpp11
6
7# Align pointer to the right.
8PointerAlignment: Right
9
10# As a base rule, the left curly brace goes on the same line as the start of the
11# statement, except function implementations, classes, structs, and namespace
12# declarations.
13BreakBeforeBraces: Custom
14BraceWrapping:
15  AfterClass: true
16  AfterControlStatement: false
17  AfterEnum: false
18  AfterFunction: true
19  AfterNamespace: true
20  AfterObjCDeclaration: false
21  AfterStruct: true
22  AfterUnion: false
23  AfterExternBlock: false
24  BeforeCatch: false
25  BeforeElse: false
26  IndentBraces: false
27  SplitEmptyFunction: true
28  SplitEmptyRecord: true
29  SplitEmptyNamespace: true
30
31# Macros that should be interpreted as foreach loops instead of as function calls.
32ForEachMacros:
33  - foreach
34  - Q_FOREACH
35  - BOOST_FOREACH
36  - forever
37  - Q_FOREVER
38  - QBENCHMARK
39  - QBENCHMARK_ONCE
40
41# Each include section has to be sorted.
42SortIncludes: true
43
44# Case labels are on the same column as the switch.
45IndentCaseLabels: false
46
47# Don't indent in namespaces.
48NamespaceIndentation: None
49
50# The maximum number of consecutive empty lines to keep.
51MaxEmptyLinesToKeep: 1
52
53# Break before operators that aren't assignments.
54BreakBeforeBinaryOperators: NonAssignment
55
56# Treat C++11 braced initialization like all other initialization
57Cpp11BracedListStyle: true
58SpaceBeforeCpp11BracedList: false
59
60BreakConstructorInitializers: BeforeComma
61
62AlignAfterOpenBracket: AlwaysBreak
63BinPackArguments: false
64ColumnLimit: 150
65AllowShortFunctionsOnASingleLine: None
66