* [PATCH] clang-format: Better approximation for binary operators and assignments
@ 2020-01-01 0:00 Matthias Maennich via libabigail
0 siblings, 0 replies; only message in thread
From: Matthias Maennich via libabigail @ 2020-01-01 0:00 UTC (permalink / raw)
To: libabigail; +Cc: dodji, kernel-team, maennich
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 <maennich@google.com>
---
.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
---
--
2.25.0.341.g760bfbb309-goog
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-21 18:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 0:00 [PATCH] clang-format: Better approximation for binary operators and assignments Matthias Maennich via libabigail
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).