Adding more header files to be analysed by extension (.gen).

Andrey MadanAndrey Madan Posts: 322 ✭✭✭

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

  • piotrpiotr Posts: 28

    The following property controls 'header file extensions':
    cpptest.testable.header.file.ext

    Default value ('|' pipe-separated):
    cpptest.testable.header.file.ext=h|hpp|hxx|hh

    To 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 ...

Sign In or Register to comment.