Help with C++ modules, autotests and metatypes

Hello,

I’ve been trying to write a kio worker for Microsoft’s file cloud service, OneDrive. I also use C++ 20 modules in the project.

However, when trying to add autotests, strange errors appear.

To reproduce, compile the repository with Clang (GCC has a bug that prevents using Qt with C++ modules). The README explains how to compile on a kde-builder setup. If KF6 headers are installed on your system then you can build it like any other CMake project. Remember to use Clang when compiling and the Ninja generator.

Also remember to pass -DBUILD_TESTS=ON to either the configure_llvm.sh script (on a kde-builder setup) or CMake itself (if KF6 headers are installed on your system).

The errors are in this snippet.