diff options
Diffstat (limited to 'kde-modules/clang-format.cmake')
-rw-r--r-- | kde-modules/clang-format.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake index 9e7bbc71..c3e43485 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 @@ -56,6 +53,9 @@ BreakBeforeBinaryOperators: None # format C++11 braced lists like function calls Cpp11BracedListStyle: true +# do not put a space before C++11 braced lists +SpaceBeforeCpp11BracedList: false + # remove empty lines KeepEmptyLinesAtTheStartOfBlocks: false @@ -67,3 +67,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 |