commit 67d10f2
pascalecu
·
2026-02-19 21:21:10 +0000 UTC
parent a96a4eb
add clang-format config
1 files changed,
+9,
-20
+9,
-20
1@@ -1,24 +1,13 @@
2-# clang-format isn't authoritative for the style decisions in this project, but
3-# these rules mostly align with the suggested style, and clang-format can be
4-# used fix any potential style-mistakes.
5-AllowShortBlocksOnASingleLine: false
6-AllowShortCaseLabelsOnASingleLine: false
7-AllowShortFunctionsOnASingleLine: false
8-AllowShortIfStatementsOnASingleLine: false
9-AllowShortLoopsOnASingleLine: false
10-AlwaysBreakAfterDefinitionReturnType: true
11-BinPackArguments: true
12-BinPackParameters: true
13-BreakBeforeBinaryOperators: NonAssignment
14+---
15+AlwaysBreakAfterReturnType: All
16 BreakBeforeBraces: Linux
17-ColumnLimit: 0
18-Cpp11BracedListStyle: false
19-ForEachMacros: [wl_list_for_each, wl_array_for_each, wl_list_for_each_safe, wl_list_for_each_reverse, wl_resource_for_each]
20-IndentWidth: 8
21-MaxEmptyLinesToKeep: 1
22+ColumnLimit: '80'
23+ExperimentalAutoDetectBinPacking: 'true'
24+FixNamespaceComments: 'true'
25 PointerAlignment: Right
26-SpaceAfterCStyleCast: false
27-TabWidth: 8
28+InsertBraces: 'true'
29+MaxEmptyLinesToKeep: 1
30 UseTab: ForIndentation
31+TabWidth: 4
32+IndentWidth: 4
33 ...
34-# vim: ft=yaml