tools: Added .clang-format for formatting

This is the `.clang-format` file I've been using for a while now. I
think that we might save on formatting nits if we tell new
contributors to use `clang-format`
This commit is contained in:
Christian Decker 2018-11-06 03:37:24 +01:00 committed by Rusty Russell
parent 685a76e714
commit 45e1f09714

6
.clang-format Normal file
View File

@ -0,0 +1,6 @@
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false