blob: 4e9958657754f897ec372e216048820bb13b657f (
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
|
# See https://wiki.apertis.org/Guidelines/Coding_conventions#Code_formatting
Language: Cpp
BasedOnStyle: GNU
IndentWidth: 8
AlwaysBreakAfterDefinitionReturnType: All
BreakBeforeBinaryOperators: true
BinPackParameters: false
SpaceAfterCStyleCast: true
IndentCaseLabels: false
IndentCaseBlocks: false
# BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
AlignAfterOpenBracket: Align
BraceWrapping:
AfterCaseLabel: false
AfterEnum: true
AfterFunction: true
AfterStruct: true
AfterUnion: true
BeforeElse: false
BeforeWhile: false
IndentBraces: false
# Our column limit is actually 80, but setting that results in clang-format
# making a lot of dubious hanging-indent choices; disable it and assume the
# developer will line wrap appropriately. clang-format will still check
# existing hanging indents.
ColumnLimit: 0
|