-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.clang-format
26 lines (21 loc) · 1.13 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
BasedOnStyle: Google
ColumnLimit: 120
IndentWidth: 4
# This will make access modifiers (public/protected/private) sit on the same indentation as `class` keyword
AccessModifierOffset: -4
# Arguments, parameters and construction initializer are broken as following:
# - Try to fit everything into single line (controlled by ColumnLimit).
# - If it doesn't fit, break immediately after open bracket (in case of arguments and parameters)
# or after colon in case of constructor initializers.
# - Try to fit everything else into the second line.
# - If it doesn't fit in second line, then each argument, parameter or initializer will sit in its own line.
AlignAfterOpenBracket: AlwaysBreak
BinPackArguments: false
BinPackParameters: false
# When constructor initializers exist in the constructor definition, leave the colon as last thing on the original
# line instead of putting it on the next line.
BreakConstructorInitializers: AfterColon
# Disallow single statements after if/else/for/while/do without curly braces.
InsertBraces: true
# Separate definition blocks, including classes, structs, enums, and functions.
SeparateDefinitionBlocks: Always