format: configure clang-format to support type definitions BEGIN/END macros

This commit is contained in:
2025-08-16 16:04:44 +01:00
parent a3ee146b4d
commit 2108277061

View File

@@ -4,6 +4,7 @@ IndentWidth: 8
Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Right
ReferenceAlignment: Left
ColumnLimit: 80
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: None
@@ -52,7 +53,9 @@ PenaltyBreakOpenParenthesis: 5
PenaltyBreakBeforeFirstCallParameter: 5
PenaltyIndentedWhitespace: 0
AttributeMacros:
- BLUELIB_API
- BLUE_API
ForEachMacros:
- b_btree_foreach
- b_queue_foreach
MacroBlockBegin: "^B_.*_BEGIN$"
MacroBlockEnd: "^B_.*_END$"