commit 67d10f226999a9b5635e178ee7d2f7b6fdddc19a
parent a96a4eb5eff64a073c38221e96809bdc2a3d5266
Author: pascalecu <stalecu64@gmail.com>
Date: Thu, 19 Feb 2026 23:21:10 +0200
add clang-format config
Diffstat:
1 file changed, 9 insertions(+), 20 deletions(-)
diff --git a/.clang-format b/.clang-format
@@ -1,24 +1,13 @@
-# clang-format isn't authoritative for the style decisions in this project, but
-# these rules mostly align with the suggested style, and clang-format can be
-# used fix any potential style-mistakes.
-AllowShortBlocksOnASingleLine: false
-AllowShortCaseLabelsOnASingleLine: false
-AllowShortFunctionsOnASingleLine: false
-AllowShortIfStatementsOnASingleLine: false
-AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterDefinitionReturnType: true
-BinPackArguments: true
-BinPackParameters: true
-BreakBeforeBinaryOperators: NonAssignment
+---
+AlwaysBreakAfterReturnType: All
BreakBeforeBraces: Linux
-ColumnLimit: 0
-Cpp11BracedListStyle: false
-ForEachMacros: [wl_list_for_each, wl_array_for_each, wl_list_for_each_safe, wl_list_for_each_reverse, wl_resource_for_each]
-IndentWidth: 8
-MaxEmptyLinesToKeep: 1
+ColumnLimit: '80'
+ExperimentalAutoDetectBinPacking: 'true'
+FixNamespaceComments: 'true'
PointerAlignment: Right
-SpaceAfterCStyleCast: false
-TabWidth: 8
+InsertBraces: 'true'
+MaxEmptyLinesToKeep: 1
UseTab: ForIndentation
+TabWidth: 4
+IndentWidth: 4
...
-# vim: ft=yaml