Hello again @sgleissner,
As of today, we support C++20 modules in SonarCloud. Here is the announcement.
It should be as easy as adding
sonar.cfamily.enableModules=true
To your sonar-scanner configuration (via command line or sonar-project.properties
)
If everything works as intended, you will see some new entries on the logs such as
INFO: 52 compilation units were scanned for C++ modules
INFO: C++ module dependency scanning cache: 0/52 hits
INFO: 21 BMIs were built for C++ modules
...
INFO: C and C++ analysis quality score: 100/100
Please, let us know how it goes!