aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/clang-format.cmake
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2020-08-11 18:19:35 +0200
committerChristoph Cullmann <cullmann@kde.org>2020-10-23 11:44:48 +0000
commita670c57c193c8632bd6d12bdf1afd237b5d753a3 (patch)
treebddc0f30702d5481663c771c60e1e036c044f45a /kde-modules/clang-format.cmake
parent0dc7bd82b03387183bb389ffbd5a28876ba3ed31 (diff)
downloadextra-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
Diffstat (limited to 'kde-modules/clang-format.cmake')
-rw-r--r--kde-modules/clang-format.cmake6
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