From 1af2243e7427ab4454106d883775dee234be01ae Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 1 Jan 2021 16:29:40 +0100 Subject: [clang-format] Break before non-assignment operators --- kde-modules/clang-format.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kde-modules/clang-format.cmake') 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 -- cgit v1.2.1