From dc8645025b9e3afc04806127e2ff60f3266119df Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Sun, 5 Sep 2021 19:02:52 +0100 Subject: clang-format: extend ForeachMacros wl_resource_for_each_safe is used in kwayland-server, and as the name suggests is a for-each like function. --- kde-modules/clang-format.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kde-modules/clang-format.cmake b/kde-modules/clang-format.cmake index 91b51c85..cf5ff2c0 100644 --- a/kde-modules/clang-format.cmake +++ b/kde-modules/clang-format.cmake @@ -79,7 +79,7 @@ SpaceAfterTemplateKeyword: false AlwaysBreakTemplateDeclarations: true # macros for which the opening brace stays attached. -ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ] +ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE , wl_resource_for_each, wl_resource_for_each_safe ] # keep lambda formatting multi-line if not empty AllowShortLambdasOnASingleLine: Empty -- cgit v1.2.1