diff options
author | Christoph Cullmann <cullmann@kde.org> | 2020-08-11 18:19:35 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2020-10-23 11:44:48 +0000 |
commit | a670c57c193c8632bd6d12bdf1afd237b5d753a3 (patch) | |
tree | bddc0f30702d5481663c771c60e1e036c044f45a | |
parent | 0dc7bd82b03387183bb389ffbd5a28876ba3ed31 (diff) | |
download | extra-cmake-modules-a670c57c193c8632bd6d12bdf1afd237b5d753a3.tar.gz extra-cmake-modules-a670c57c193c8632bd6d12bdf1afd237b5d753a3.tar.bz2 |
improve default formatting options
1) remove AlignTrailingComments: true
=> this avoids multiline comment changes if e.g. one longer member/variable is added with comments behind it
2) add AllowShortLambdasOnASingleLine: Empty
=> avoid the uglification of lambdas
-rw-r--r-- | kde-modules/clang-format.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake index 9e7bbc71..74cc51c9 100644 --- a/kde-modules/clang-format.cmake +++ b/kde-modules/clang-format.cmake @@ -32,9 +32,6 @@ PointerAlignment: Right # horizontally aligns arguments after an open bracket. AlignAfterOpenBracket: Align -# align trailing comments -AlignTrailingComments: true - # don't move all parameters to new line AllowAllParametersOfDeclarationOnNextLine: false @@ -67,3 +64,6 @@ SpaceAfterTemplateKeyword: false # macros for which the opening brace stays attached. ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ] + +# keep lambda formatting multi-line if not empty +AllowShortLambdasOnASingleLine: Empty |