-
Notifications
You must be signed in to change notification settings - Fork 4
/
.clang-format
38 lines (30 loc) · 1 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
27
28
29
30
31
32
33
34
35
36
37
38
---
#https://zed0.co.uk/clang-format-configurator/
BasedOnStyle: Google
# Pointer designation always next to the type they pertain to.
DerivePointerAlignment: 'false'
PointerAlignment: Left
# No limit on characters per line.
ColumnLimit: '0'
# Dont use tabs, use 4 spaces instead. Tabs vary across OS.
UseTab: ForIndentation
TabWidth: '4'
IndentWidth: '4'
SpacesBeforeTrailingComments: '1'
# Sort includes alphabetically. Will respect space seperated blocks of includes.
IncludeBlocks: Preserve
# Access modifiers stay left-alligned (public, private...
AccessModifierOffset: -4
# Allow these on single line for better readability.
AllowShortEnumsOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortBlocksOnASingleLine: 'Always'
# Always indent after braces.
BreakBeforeBraces: Allman
NamespaceIndentation: All
AlignConsecutiveAssignments: 'true'
BreakConstructorInitializers: BeforeComma
KeepEmptyLinesAtTheStartOfBlocks: 'false'
BeforeLambdaBody: 'false'
LambdaBodyIndentation: 'OuterScope'
...