I have a question about performing incremental analysis on C++ code using build wrapper.
What I can understand is after your build the build wrapper generates the build-wrapper-dump.json file which then gets used by the scanner to decide which files needs to be analysed. The issue with this is that it will only analyse the last built files.
The normal work flow for coding is we do many code changes and many builds locally in your workspace without running analysis. And at the end we want to do a sonar-scan. The sonar-scan will only analyse the last built files.
Is there a way for the scanner/build wrapper to analyse all built files since the last sonar-scan?
as described in the documentation you are required to perform a full clean build to analyze your project to allow the analyzer to see all built files. If you are concerned about performance of full build you can always speed up your build in other ways, i.e. by using ccache.