summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-01-30 11:10:48 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-04 16:43:09 +0100
commit8400bdd19adfe4f904c971f6ef6ef9499896fa4d (patch)
tree1bd1498244ccb526144aa5e10f887bc6aef184ee /.clang-format
parentb82fac15c40a22f9dd15f5bd3d20e6730027a9df (diff)
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
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