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.
This commit is contained in:
Alex Richardson 2022-05-17 09:26:58 +00:00 committed by Simon McVittie
parent cbad0a74f7
commit a68209cb23

5
.clang-format Normal file
View file

@ -0,0 +1,5 @@
BasedOnStyle: GNU
AlwaysBreakAfterDefinitionReturnType: All
BreakBeforeBinaryOperators: None
BinPackParameters: false
SpaceAfterCStyleCast: true