From e262d71a56ceeadedf8c7fc1a25ed55481eaa2f7 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 31 Mar 2019 16:06:23 +0200 Subject: [PATCH] Modifiy formatting rules * Allow a single line for empty functions only. * Don't allow if statements on a single line. This improves readability and helps when debugging. Signed-off-by: Stefan Weil --- .clang-format | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-format b/.clang-format index c311a1d9e7..09c01d6526 100644 --- a/.clang-format +++ b/.clang-format @@ -1,5 +1,9 @@ --- BasedOnStyle: Google +# Only merge empty functions. +AllowShortFunctionsOnASingleLine: Empty +# Do not allow short if statements. +AllowShortIfStatementsOnASingleLine: false # Enforce always the same pointer alignment. DerivePointerAlignment: false IndentPPDirectives: AfterHash