From d2567e1f48f57b6fcef7e9dea71cc1acf37c8495 Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Fri, 24 Nov 2023 14:20:48 +0000 Subject: [PATCH] Allow short ifs on a single line (without else branch). --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 28c73fe0e9..95a9e1a080 100644 --- a/.clang-format +++ b/.clang-format @@ -18,7 +18,7 @@ AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: true AllowShortEnumsOnASingleLine: false AllowShortFunctionsOnASingleLine: All -AllowShortIfStatementsOnASingleLine: Never # Or WithoutElse? +AllowShortIfStatementsOnASingleLine: WithoutElse AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: false -- GitLab