diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-11 13:28:16 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-02-11 14:47:22 +0000 |
commit | 76aba1f0460fde2115842e8480d700f1e5418138 (patch) | |
tree | f0314dde82f376f702b7a13378c6806d089a2a3f /.clang-format | |
parent | 59028d7d0f3a607949a1c1bc97b9cd6d3a653140 (diff) | |
download | gtk+-76aba1f0460fde2115842e8480d700f1e5418138.tar.gz |
ci: Add a style check pass
We should at least try to get the style check done by a machine, as
opposed to have humans go through merge requests with coding style
nitpicks.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..13fd0fbd44 --- /dev/null +++ b/.clang-format @@ -0,0 +1,11 @@ +# See https://wiki.apertis.org/Guidelines/Coding_conventions#Code_formatting +BasedOnStyle: GNU +AlwaysBreakAfterDefinitionReturnType: All +BreakBeforeBinaryOperators: None +BinPackParameters: false +SpaceAfterCStyleCast: true +# 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 |