summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-11-09 14:34:52 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-11-09 14:50:54 +0000
commit756084037001386f8eabc15ef076504cc2ad3e05 (patch)
treed53c2a369fb14c45ed8abe0e3db5cf949a10ff8d /.clang-format
parent727902298d2ea2401d37f8ac2a58a81658433431 (diff)
downloadgdk-pixbuf-756084037001386f8eabc15ef076504cc2ad3e05.tar.gz
ci: Add style check job
Make at least an attempt at a consistent coding style.
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 000000000..13fd0fbd4
--- /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