From 6a6d0be0c659c28946c70a4774966ea9169acb25 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 24 Jul 2024 11:18:46 +0200 Subject: turns: update header sorting rules and reformat code --- .clang-format | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 8d02964..45efa4a 100644 --- a/.clang-format +++ b/.clang-format @@ -66,16 +66,28 @@ FixNamespaceComments: true IncludeBlocks: Regroup IncludeCategories: # Local Headers - - Regex: '"[A-za-z0-9._\/]+"' + - Regex: '^"[[:alnum:]_/\-]+\.h(pp)?' Priority: 200 # Catch2 Headers - - Regex: '' + - Regex: '^' - Priority: 400 + # sigc++ Headers + - Regex: '^' + - Regex: '^<[[:alnum:]/+-]+\.h(pp)?' + Priority: 400 + # STL Headers + - Regex: '^<[[:alnum:]_]+>' Priority: 500 -- cgit v1.2.3