From a68209cb23cd68e8803b1d09667fb8d3b8e8b29a Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Tue, 17 May 2022 09:26:58 +0000 Subject: 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. --- .clang-format | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..6c1859a6 --- /dev/null +++ b/.clang-format @@ -0,0 +1,5 @@ +BasedOnStyle: GNU +AlwaysBreakAfterDefinitionReturnType: All +BreakBeforeBinaryOperators: None +BinPackParameters: false +SpaceAfterCStyleCast: true -- cgit v1.2.1