[libcamera-devel] [PATCH] clang-format: Enable BreakBeforeTernaryOperators
Kieran Bingham
kieran.bingham at ideasonboard.com
Wed Jan 30 12:13:49 CET 2019
This produces code with the ternary operators at the beginning instead of the
end of the line:
return caps_.isMultiplanar() ? getFormatMultiplane(fmt)
: getFormatSingleplane(fmt);
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
.clang-format | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.clang-format b/.clang-format
index 59a61d050e3d..d4669dd93f8d 100644
--- a/.clang-format
+++ b/.clang-format
@@ -47,7 +47,7 @@ BraceWrapping:
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
#BreakBeforeInheritanceComma: false # Unknown to clang-format-4.0
-BreakBeforeTernaryOperators: false
+BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
#BreakConstructorInitializers: BeforeComma # Unknown to clang-format-4.0
BreakAfterJavaFieldAnnotations: false
--
2.19.1
More information about the libcamera-devel
mailing list