aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/clang-format.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/clang-format.cmake')
-rw-r--r--kde-modules/clang-format.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake
index c7c99abd..2e55b1cf 100644
--- a/kde-modules/clang-format.cmake
+++ b/kde-modules/clang-format.cmake
@@ -47,8 +47,9 @@ BinPackArguments: false
# don't move parameters to own lines if they are not all on the same
BinPackParameters: false
-# don't break binary ops
-BreakBeforeBinaryOperators: None
+# In case we have an if statement whith multiple lines the operator should be at the beginning of the line
+# but we do not want to break assignments
+BreakBeforeBinaryOperators: NonAssignment
# format C++11 braced lists like function calls
Cpp11BracedListStyle: true