From patchwork Wed Jan 1 00:00:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksei Vetrov via Libabigail X-Patchwork-Id: 38999 X-Patchwork-Original-From: libabigail@sourceware.org (Matthias Maennich via libabigail) From: Aleksei Vetrov via Libabigail Date: Wed, 01 Jan 2020 00:00:00 -0000 Subject: [PATCH] clang-format: Better approximation for binary operators and assignments Message-ID: <20200121183424.234744-1-maennich@google.com> The project style requires assignment operators to be on the first line of two if the line needs to break. Reflect that in the .clang-format configuration to approximate the style better when using clang-format. * .clang-format: Add BreakBeforeBinaryOperators option. Signed-off-by: Matthias Maennich --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index 54d573a5937f..f3a039c6622a 100644 --- a/.clang-format +++ b/.clang-format @@ -12,4 +12,5 @@ SortUsingDeclarations: false SpaceBeforeParens: ControlStatements TabWidth: 8 UseTab: Always +BreakBeforeBinaryOperators: NonAssignment ---