diff options
author | Alexander Lohnau <alexander.lohnau@gmx.de> | 2021-01-01 16:29:40 +0100 |
---|---|---|
committer | Alexander Lohnau <alexander.lohnau@gmx.de> | 2021-01-01 16:34:37 +0100 |
commit | 1af2243e7427ab4454106d883775dee234be01ae (patch) | |
tree | 1521944ace139b1c2a2bb02b3d67cbb667906506 | |
parent | c7bd5a9b2b1b645574320e04e6db5a2cfeca4bf3 (diff) | |
download | extra-cmake-modules-1af2243e7427ab4454106d883775dee234be01ae.tar.gz extra-cmake-modules-1af2243e7427ab4454106d883775dee234be01ae.tar.bz2 |
[clang-format] Break before non-assignment operators
-rw-r--r-- | kde-modules/clang-format.cmake | 5 |
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 |