summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-02-11 13:28:16 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-02-11 14:47:22 +0000
commit76aba1f0460fde2115842e8480d700f1e5418138 (patch)
treef0314dde82f376f702b7a13378c6806d089a2a3f /.clang-format
parent59028d7d0f3a607949a1c1bc97b9cd6d3a653140 (diff)
downloadgtk+-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-format11
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