aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2021-09-05 19:02:52 +0100
committerDavid Edmundson <kde@davidedmundson.co.uk>2021-09-20 12:33:17 +0000
commitdc8645025b9e3afc04806127e2ff60f3266119df (patch)
tree769beb97151a95d76d14fbd3faea54f7d09f1668
parent7e3d3373d890e4c51f5bb1bd92abcce70e766cf4 (diff)
downloadextra-cmake-modules-dc8645025b9e3afc04806127e2ff60f3266119df.tar.gz
extra-cmake-modules-dc8645025b9e3afc04806127e2ff60f3266119df.tar.bz2
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.
-rw-r--r--kde-modules/clang-format.cmake2
1 files changed, 1 insertions, 1 deletions
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