Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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

Andrey Madan
Andrey Madan Posts: 388 ✭✭✭

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

  • piotr
    piotr Posts: 36

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