From 45e1f097149eb7483ef0c27778304e13f961321c Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 6 Nov 2018 03:37:24 +0100 Subject: [PATCH] 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` --- .clang-format | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..a3ef233a2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,6 @@ +BasedOnStyle: LLVM +IndentWidth: 8 +UseTab: Always +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false