Sonar analyser could not find any Qt header, so the analysis doesn’t work well.
The analyzer was not able to find file
QAbstractItemModel
included from file C:/azp/agent/_work/1/s/sources/Sources/precompiled_headers.h
included from file C:/azp/agent/_work/1/b/builddir/Sources/Common/XLProToolkit/CMakeFiles/XLProToolkit.dir/cmake_pch.hxx
included from file <built-in>
We’ve got the issue since we have migrated our build system to cmake/ninja. Our previous build system was based on qmake/jom.
The analysis run on Windows 10 VM with azure agent, the analysis is triggered from our Azure DevOps Pipeline.
Until then you can try one of these temporary options:
Add these include directory twice using “-external:I” and “-I”. This should be functionally equivalent since the directory will still be considered external.
Avoid using this option for the analysis build.
Write a script that replace -external:I with -I in the build-wrapper.json before running the scanner.