aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/clang-format.cmake
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2021-02-16 23:45:27 +0200
committerAhmad Samir <a.samirh78@gmail.com>2021-02-16 23:45:27 +0200
commita04e7115a9879bc627bec8fb944b669cef134bff (patch)
tree8a076810c8d643d96d410dbbf7dec6d38ed0f993 /kde-modules/clang-format.cmake
parent1ed900aa5ea9201f2f9d1baf02dd19263d7f9a27 (diff)
downloadextra-cmake-modules-a04e7115a9879bc627bec8fb944b669cef134bff.tar.gz
extra-cmake-modules-a04e7115a9879bc627bec8fb944b669cef134bff.tar.bz2
clang-format: set AlwaysBreakTemplateDeclarations to true
This matches most of the existing code in KDE; also note that Qt has the same setting (also stating in a comment in their _clang-format that this matching their existing code).
Diffstat (limited to 'kde-modules/clang-format.cmake')
-rw-r--r--kde-modules/clang-format.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake
index f698a928..74e7342c 100644
--- a/kde-modules/clang-format.cmake
+++ b/kde-modules/clang-format.cmake
@@ -66,6 +66,9 @@ NamespaceIndentation: None
# we use template< without space.
SpaceAfterTemplateKeyword: false
+# Always break after template declaration
+AlwaysBreakTemplateDeclarations: true
+
# macros for which the opening brace stays attached.
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]