summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorPavlo Solntsev <p.sun.fun@gmail.com>2019-11-11 14:21:25 -0600
committerPavlo Solntsev <p.sun.fun@gmail.com>2019-11-21 14:03:01 -0600
commite95f47c395dec41a59adec7694d940f2557e3667 (patch)
treeb29099a0de6549bca927242d638458c9ef5cb513 /.clang-format
parent7b774398414f2bf35115603da4e3badd45ffb025 (diff)
CI: Code check formating in CI
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