Fix .clang-format (#1177)

* Added coderabbitai configuration

* Fix .clang-format

---------

Co-authored-by: John Wellbelove <john.wellbelove@asterconsulting.co.uk>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
This commit is contained in:
Roland Reichwein 2025-09-06 15:12:34 +02:00 committed by GitHub
parent b85b071a3e
commit 92f07a66fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View File

@ -5,10 +5,16 @@
Language: Cpp Language: Cpp
SortIncludes: true
BasedOnStyle: Chromium BasedOnStyle: Chromium
SortIncludes: true
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^(<|")(.*/)?platform\.h(>|")$'
Priority: 1
- Regex: '.*'
Priority: 2
BinPackParameters: false BinPackParameters: false
BitFieldColonSpacing: Both BitFieldColonSpacing: Both

View File

@ -197,3 +197,4 @@ reviews:
chat: chat:
art: false art: false
auto_reply: true auto_reply: true

View File

@ -67,6 +67,8 @@ namespace etl
using time_t = ::time_t; using time_t = ::time_t;
} }
// clang-format off
// Keeping the order is important here
#include "private/chrono/last_spec.h" #include "private/chrono/last_spec.h"
#include "private/chrono/duration.h" #include "private/chrono/duration.h"
#include "private/chrono/time_point.h" #include "private/chrono/time_point.h"
@ -83,6 +85,7 @@ namespace etl
#include "private/chrono/hh_mm_ss.h" #include "private/chrono/hh_mm_ss.h"
#include "private/chrono/operators.h" #include "private/chrono/operators.h"
#include "private/chrono/time_zone.h" #include "private/chrono/time_zone.h"
// clang-format on
namespace etl namespace etl
{ {