From 6a1585b3178021ff453f9067a08f7fafeea60406 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 2 Apr 2026 12:28:16 +0100 Subject: [PATCH] Improved include regex --- .clang-format | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index eee29f08..0fdcf814 100644 --- a/.clang-format +++ b/.clang-format @@ -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