forked from OpenBoardView/OpenBoardView
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.clang-format
42 lines (34 loc) · 1.03 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
39
40
41
42
# .clang-format (YAML)
BasedOnStyle: LLVM
# Indentation
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
# Used for line wrapping and defining a "short" statement
ColumnLimit: 132
# Allow short statements on one line
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
# Sensible alignments
AlignConsecutiveAssignments: true
AlignOperands: true
AlignEscapedNewlinesLeft: true
AlignAfterOpenBracket: Align
BinPackArguments: false # Break after each arg if they won't fit on one line
BinPackParameters: false
# Line breaks
BreakBeforeBraces: Attach
BreakConstructorInitializersBeforeComma: true
AlwaysBreakTemplateDeclarations: true
AlwaysBreakBeforeMultilineStrings: true
# Misc
PointerBindsToType: false
IndentCaseLabels: true
# Includes ordering
IncludeCategories:
- Regex: '^"platform.h"$' # Keep platform.h first
Priority: -2
- Regex: '^"imgui.h"$' # Keep platform.h first
Priority: -1