From 8400bdd19adfe4f904c971f6ef6ef9499896fa4d Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 30 Jan 2019 11:10:48 +0000 Subject: clang-format: Enable BreakBeforeTernaryOperators This produces code with the ternary operators at the beginning instead of the end of the line: return caps_.isMultiplanar() ? getFormatMultiplane(fmt) : getFormatSingleplane(fmt); Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 17eb095b..bed81c58 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 -- cgit v1.2.1