forked from ThingSet/thingset-zephyr-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
33 lines (30 loc) · 801 Bytes
/
.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
# Format definition for Libre Solar firmware
#
# Use Clang-Format plugin in VS Code and add "editor.formatOnSave": true to settings
# Generic format
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 4
ColumnLimit: 100
AccessModifierOffset: -4
# Indentation and alignment
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AlignConsecutiveAssignments: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: DontAlign
BreakBeforeBinaryOperators: NonAssignment
IndentCaseLabels: true
# Braces
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: true
AfterStruct: true
AfterFunction: true
BeforeElse: true
SplitEmptyFunction: false
Cpp11BracedListStyle: false