Qt Creator C++20 module autocompletion / clang parser
Unsolved
Qt Creator and other tools
-
Hi,
I'm trying to get C++20 modules to work with Qt Creator. I got it to compile with CMake 3.20.2 but the Qt Creator Editor integration is not working 100%. I cant autocomplete exported stuff and clang can't find any imported module. I tried with a modmap and different clang flags but the best result was a message from the parser: "can't build module xxx".
Is there a way to get this to work or is this just not supported by QT Creator 4.15?
For people who want to compile their Qt Project with C++ modules and CMake:
CMakeList (tested with gcc 11.1)cmake_minimum_required(VERSION 3.20) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP true) target_compile_options(example PRIVATE -fmodules-ts)