From a04e7115a9879bc627bec8fb944b669cef134bff Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Tue, 16 Feb 2021 23:45:27 +0200 Subject: 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). --- kde-modules/clang-format.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kde-modules/clang-format.cmake') 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 ] -- cgit v1.2.1