From 9e331465d9f61fc04bd33cf5fc6146cf20b76755 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 23 Apr 2021 09:14:54 +0200 Subject: [PATCH] clang-format: turn off BreakBeforeBinaryOperators Improve readability by not suggesting changes like: - if (JsonUtil::findJSONValue(object, "Url", url) && - JsonUtil::findJSONValue(object, "Name", filename)) + if (JsonUtil::findJSONValue(object, "Url", url) + && JsonUtil::findJSONValue(object, "Name", filename)) Note that clang-format is never enforced (we never re-format existing code), but your editor may respect it for new code. Signed-off-by: Miklos Vajna Change-Id: Id6679220f83b77a4c63ca9a9429052535c75939a --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 9d0d3de3f7..0a2f631508 100644 --- a/.clang-format +++ b/.clang-format @@ -7,7 +7,7 @@ AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false AlwaysBreakTemplateDeclarations: false AlwaysBreakBeforeMultilineStrings: false -BreakBeforeBinaryOperators: true +BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: true BinPackParameters: true