summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:23:45 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:12 -0600
commitbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (patch)
tree6cbf650b6baac03be9316c257804e2a768bf50d8 /.clang-format
parent214b28a483f55b6aaf8228499d544627cbbff0ed (diff)
downloadat-spi2-core-bf4d71a38b970699f63ce7b701e9bf4c9d31f717.tar.gz
Add a .clang-format configuration
Stolen from glib. Most of at-spi2-core's code is in GNU coding style, or something close enough, mostly due to inconsistent indentation. We'll fix it.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format10
1 files changed, 10 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..69cb827f
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,10 @@
+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