Michael Förderer

Results 489 comments of Michael Förderer

Which version of `gcovr` are you using?

I don't know why the branches are counted different here. Is it possible to post the part of the json report for this line?

No. Please add the option `--json` and upload the JSON. In this file we have full information about the line and the branches.

In the JSON the left branch isn't a exception branch: ``` { "file": "bin/binExample/src/BinClass1.cpp", "lines": [ { "line_number": 3, "count": 5, "branches": [ ], "gcovr/md5": "3085502f2bb622f88cd261f064888632" }, { "line_number": 5,...

@raihav Sorry, I've missed your comment. `std:string` Is a C++ constructor where branches for exception handling and other things are added by the compiler.

Can you try to adapt the command line according to our test? https://github.com/gcovr/gcovr/blob/444a0f4326c1b7402535af02e52992a511fa39cc/tests/cmake_gtest/Makefile#L13-L14 This should be something like: ```yaml - name: Generate gcov report # any except canceled or skipped...

This are the default options for the release build. Can you add `-DCMAKE_BUILD_TYPE=PROFILE` to the CMake arguments and in your toolchain file or in the top-level CMakeLists.txt following block: ```...