From: Alex Richardson Date: Tue, 17 May 2022 09:26:58 +0000 (+0000) Subject: Add a clang-format configuration file X-Git-Tag: dbus-1.15.0~55^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a68209cb23cd68e8803b1d09667fb8d3b8e8b29a;p=thirdparty%2Fdbus.git Add a clang-format configuration file This ensures that IDEs such as CLion automatically use the correct indentation, and running `git-clang-format` results in patches that are actually quite close to the current style. It doesn't handle alignment of parameters in function declarations, but otherwise it seems accurate. --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..6c1859a65 --- /dev/null +++ b/.clang-format @@ -0,0 +1,5 @@ +BasedOnStyle: GNU +AlwaysBreakAfterDefinitionReturnType: All +BreakBeforeBinaryOperators: None +BinPackParameters: false +SpaceAfterCStyleCast: true