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