Add a clang-format configuration file

System Internals / DBus - Alex Richardson [gmail.com] - 18 May 2022 11:48 UTC

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.

a68209cb Add a clang-format configuration file
.clang-format | 5 +++++
1 file changed, 5 insertions(+)

Upstream: cgit.freedesktop.org


  • Share