From 00ee06d6606960e57c6cf49a6a83f642a55e5fcb Mon Sep 17 00:00:00 2001 From: Guilherme Amadio <amadio@cern.ch> Date: Fri, 21 Jul 2017 14:48:32 +0200 Subject: [PATCH] Don't let clang-format to put if condition and body on the same line This is aesthetically bad, and makes it hard to set break points to specific parts of the code when debugging. --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index ea7621a3b20..52dae528f06 100644 --- a/.clang-format +++ b/.clang-format @@ -11,7 +11,7 @@ AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: Inline -AllowShortIfStatementsOnASingleLine: true +AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: true # This option is "deprecated and is retained for backwards compatibility." # AlwaysBreakAfterDefinitionReturnType: None -- GitLab