summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-24 11:18:46 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-24 11:18:46 +0200
commit6a6d0be0c659c28946c70a4774966ea9169acb25 (patch)
tree0514faa91f48765d09bbad7d400162866c7161ad /.clang-format
parent3f5499cebc06356ed99159be3fb9676292cf7b8b (diff)
downloadturns-6a6d0be0c659c28946c70a4774966ea9169acb25.tar.xz
turns-6a6d0be0c659c28946c70a4774966ea9169acb25.zip
turns: update header sorting rules and reformat code
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format24
1 files changed, 18 insertions, 6 deletions
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: '<catch2/.*\.hpp>'
+ - Regex: '^<catch2/[[:alnum:]_/]+\.hpp'
Priority: 300
- # STL Headers
- - Regex: '<[A-za-z0-9_]+>'
- Priority: 400
+ # sigc++ Headers
+ - Regex: '^<sigc\+\+/[[:alnum:]/]+\.h(pp)?'
+ Priority: 340
+ # Glibmm Headers
+ - Regex: '^<glibmm/[[:alnum:]/]+\.h(pp)?'
+ Priority: 350
+ # Giomm Headers
+ - Regex: '^<giomm/[[:alnum:]/]+\.h(pp)?'
+ Priority: 360
+ # Gtk Headers
+ - Regex: '^<gtkmm/[[:alnum:]/]+\.h(pp)?'
+ Priority: 370
# General System Headers
- - Regex: '<[A-za-z0-9._\/]+>'
+ - Regex: '^<[[:alnum:]/+-]+\.h(pp)?'
+ Priority: 400
+ # STL Headers
+ - Regex: '^<[[:alnum:]_]+>'
Priority: 500