I have a large c++ Project which contains serveral shared objects using cmake. I am using gtest and gmock for unit tests and in addition I am using a code coverage extension from here https://github.com/StableCoder/cmake-scripts.git. The code coverage module works with gcc and clang. In addition I modified the script to be able to create code coverage on windows using cmakes -T clang-cl option (clang 17). This works quite well.
Now I have a issue with “ignore-filename-regex” option. While this works on Linux it seems to be ignored on windows. The script from the cmake lib checks the llvm-cov to determine if this option is availble.
e.g. I have the following path shown in browser
- codeenginesourcetestsystemfoo.cpp
- my regex is .[/]test[/].
- I tested the regex using an regex editor to be sure the regex workd
- file name option is available (it must be a minimum version of llvm-vov 7)
- on Linux it works as expected, on windows not
Does have anyone an idea?