forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
28 lines (28 loc) · 1017 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
# clang-format script for daos that most closely matches our coding style.
# Tested on CentOS 8, and uses version 12 so check for that in
# site_scons/site_tools/extra/extra.py
---
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: ForContinuationAndIndentation
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ForEachMacros: ['d_list_for_each_entry', 'd_list_for_each_entry_safe',
'evt_ent_array_for_each']
PointerAlignment: Right
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignTrailingComments: true
ColumnLimit: 100
SortIncludes: false
AlwaysBreakAfterReturnType: All
IndentGotoLabels: false
AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
AlignConsecutiveAssignments: AcrossEmptyLinesAndComments
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments
SpaceBeforeParens: ControlStatementsExceptForEachMacros
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
...