ci: Add style check

GTK uses the same code style that we use. Copy the style checks from
GTK to help contributors catch these mistakes early.
This commit is contained in:
Titouan Real
2025-04-04 23:59:13 +00:00
committed by Georges Basile Stavracas Neto
parent 38aa09dc8c
commit 652625a2e6
4 changed files with 212 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# See https://www.apertis.org/policies/coding_conventions/#code-formatting
BasedOnStyle: GNU
AlwaysBreakAfterDefinitionReturnType: All
BreakBeforeBinaryOperators: None
BinPackParameters: false
SpaceAfterCStyleCast: true
PointerAlignment: Right
# Our column limit is actually 80, but setting that results in clang-format
# making a lot of dubious hanging-indent choices; disable it and assume the
# developer will line wrap appropriately. clang-format will still check
# existing hanging indents.
ColumnLimit: 0