Adding more header files to be analysed by extension (.gen).
We are working with C/C++test Standard.
A prospect was able to analyse header files (.h) by providing -module switch.
(Feedback - not very intuitive to find this option in docs AND understand WHY "-module" would control the inclusions of headers into the analysis - but that is a separate discussion) .
So - they have some header files (*.gen) that don't seem to be analyzed. How do we let -module switch know to include those header files? Should it be done at .psrc files level? Should we use the -include option like this:
cpptestcli -module . -include *.gen ....
?
please let me know what is the recommended approach in this case. TIA.
Comments
-
The following property controls 'header file extensions':
cpptest.testable.header.file.extDefault value ('|' pipe-separated):
cpptest.testable.header.file.ext=h|hpp|hxx|hhTo modify it:
cpptestcli ... -property cpptest.testable.header.file.ext='h|gen|txt' ...
You can also add the property to your settings.properties file and then use in CLI:
cpptestcli ... -settings settings.properties ...
0