summaryrefslogtreecommitdiff
path: root/.clang-format
blob: fe6ba0c3a5e90417c4dac230345fbfd5c7be499d (plain)
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
Language: Cpp
Standard: Cpp11

# Use SmartTabs
UseTab: ForIndentation
IndentWidth: 4
TabWidth: 4
ConstructorInitializerIndentWidth: 4

NamespaceIndentation: None

# Use Allman brace style.
BreakBeforeBraces: Allman

# CTOR initializers should be
# Class::Class()
#   : Foo()
#   , bar(1 ,2)
#   , bas("hello")
BreakConstructorInitializersBeforeComma: true

AccessModifierOffset: -4
AlignAfterOpenBracket: false

# Always expand curlies.
AllowShortFunctionsOnASingleLine: None
AllowShortLoopsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false

# Do not indent case labels
IndentCaseLabels: false

ConstructorInitializerAllOnOneLineOrOnePerLine: true
AllowAllParametersOfDeclarationOnNextLine: true

DerivePointerAlignment: false
PointerAlignment: Left

SpaceBeforeAssignmentOperators: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeParens: Never