I have a question regarding code coverage analysis.
In our project, we use gcov for analyzing coverage for our C++ code and publish it to a SQ server to render results. It works pretty well so far but we are facing problems with header-only code, templates in particular. It is always shown as 0% covered although unit tests are executed that call the functions. Invoking a template function that is just declared inside the header but defined and used inside a cpp file only works fine.
Here SonarQube is just reading the report and displaying it. If the problem is in the report we cannot help. What you are describing looks like gcov related issue. You have a higher chance of getting an answer if you post the question in gcov related channel.
I already assumed something like that. I just hoped that other people using SQ for C++ development already faced the problem and know a solution, which is probably pretty simple.