clang-format.cmake seems to cause weird code style with clang 18
I've added the clang-format CI check in network/kaidan!1134 (30b485dc). It fails (https://invent.kde.org/network/kaidan/-/jobs/1731621) and reports e.g.
- Q_EMIT Kaidan::instance()->openChatPageRequested(accountJid, jid);
+ Q_EMIT Kaidan::instance() -> openChatPageRequested(accountJid, jid);
Running
wget -O .clang-format https://invent.kde.org/frameworks/extra-cmake-modules/-/raw/master/kde-modules/clang-format.cmake
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) | xargs clang-format -i
locally with clang 17 does not produce this broken formatting. Therefore, I assume that it must be a compatibility issue with clang 18 (the version in CI).
see also sysadmin/ci-utilities#27 (closed)