...
Table of Content Zone | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
-compiler <name|path>Specifies the name of the compiler configuration you want to use for code analysis and instrumentation. See Compilers for the list of supported compilers or use the Examples:
Configuration file format (see -psrc): -list-compilersPrints out the names of all supported compiler configurations. Configuration file format (see -psrc): -include <file|pattern> and -exclude <file|pattern>Includes into or excludes from the instrumentation scope all the file(s) that match the specified pattern. Final filtering is determined only after all include/exclude entries have been specified in the order of their specification. The following wildcards are supported:
To prevent shells from expanding These options can be specified multiple times. Configuration file format (see -psrc): Example 1: Sample project layout:
If your project has the above layout, the following command will exclude all the files in the
Example 2: Sample project layout:
If your project has the above layout, the following command will only instrument the header files (the source files will not be instrumented):
-ignore <pattern>Specifies the source files that will be ignored during processing. The files that match the specified pattern will be compiled, but they will not be parsed or instrumented.
You can use the The following wildcards are supported:
To prevent shells from expanding This option can be specified multiple times. Configuration file format (see -psrc): Examples:
-line-coverageEnables collecting line coverage. Runtime coverage results are being written to the results log as the code is executed. This imposes some overhead on the tested code execution time, it but it allows you to ensure that that coverage data is collected even if the application crashes. Configuration file format (see -psrc): -optimized-line-coverageEnables collecting optimized line coverage. Runtime coverage results are stored in memory and then written to the results log either after the application finishes or on user request. This results in better performance, but results may be lost if the application crashes. Configuration file format (see -psrc): -function-coverageEnables collecting function coverage. Configuration file format (see -psrc): -optimized-function-coverageEnables collecting optimized function coverage. Configuration file format (see -psrc):
-statement-coverageEnables collecting statement coverage. Configuration file format (see -psrc):
-optimized-statement-coverageEnables collecting statement coverage. Configuration file format (see -psrc): -block-coverageEnables collecting block coverage. Configuration file format (see -psrc): -optimized-block-coverageEnables collecting optimized block coverage. Configuration file format (see -psrc): -path-coverageEnables collecting path coverage. Configuration file format (see -psrc): -decision-coverageEnables collecting decision coverage. Configuration file format (see -psrc): -optimized-decision-coverageEnables collecting optimized decision coverage. Configuration file format (see -psrc): -simple-condition-coverageEnables collecting simple condition coverage. Configuration file format (see -psrc): -optimized-simple-condition-coverageEnables collecting optimized simple condition coverage. Configuration file format (see -psrc): -mcdc-coverageEnables collecting MC/DC coverage. Configuration file format (see -psrc): -call-coverageEnables collecting call coverage. Configuration file format (see -psrc): -optimized-call-coverageEnables collecting optimized call coverage. Configuration file format (see -psrc): -coverage-early-initEnables initializing the coverage module at the beginning of the application entry point. Configuration file format (see -psrc): -coverage-auto-finalizationIf enabled, collecting coverage will be automatically finalized at the application exit. This option is enabled by default. Configuration file format (see -psrc): -optimized-coverage-corruption-detectionEnables corruption detection algorithms for optimized coverage metrics. Configuration file format (see -psrc): -template-coverageEnables collecting coverage for template classes and functions Configuration file format (see -psrc): -coverage-data-variantsEnables storing multiple variants of the coverage data for different compilations of the same source file. By default, cpptestcc collects coverage data for each source file once per build. In rare scenarios when a source file is compiled more than once during a build, you can use this option to enable storing multiple variants of coverage data for the same source file – one variant for each compilation. This option does not support scenarios where conflicting code is introduced by multiple compilations of the same source file. -disable-auto-recovery-modeDisables the auto recovery mode for coverage instrumentation. By default, when a file cannot be successfully instrumented, the original (non-instrumented) version of that file is used in a build. With this option specified, the build is failed with an error if instrumentation problems occur.
Specifies a custom directory where information about code structure will be stored during code analysis and instrumentation. The By default, the information is stored in the working directory of the current compilation. If your compilation uses more than one working directory, we recommend that you specify a custom directory to ensure that all coverage data is stored in the same location. Configuration file format (see -psrc): -techsupportCreates an archive with diagnostic files collected from the workspace (see -workspace). The archive will be stored in the current working directory. Examples:
Specifies the path to a configuration file where you can configure additional By default, If an option is configured both in the command line and in the configuration file, -status-status-verboseDisplays diagnostic data collected from the workspace (see -workspace), including error and warning information, the number of files, etc. Use Examples:
-versionPrints out information about the version -help Prints out the help message and exits. |
...