Improved include regex

This commit is contained in:
John Wellbelove 2026-04-02 12:28:16 +01:00
parent 9fba468dc2
commit 6a1585b317

View File

@ -25,6 +25,7 @@ BreakInheritanceList: BeforeComma
BreakBeforeBinaryOperators: NonAssignment
BreakStringLiterals: false
AlwaysBreakTemplateDeclarations: Yes # template <…> always on its own line
BreakAfterAttributes: Always
# =============================================================================
# Short statements
@ -71,7 +72,10 @@ ReflowComments: true # preserve hand-formatted comment rulers
IncludeCategories:
- Regex: '^(<|")(.*/)?platform\.h(>|")$'
Priority: -1
# everything else gets the default priority (0)
- Regex: 'private'
Priority: 1
- Regex: '.*'
Priority: 0
# =============================================================================
# Arguments, parameters and constructor initialisers