The icstat tool
Use the icstat tool to perform a C-STAT static analysis on a project, with a previously produced manifest file as input. You produce the manifest file using the ichecks tool.
Invocation syntax for icstat
The invocation syntax for icstat:
icstatparameters[--command_line]
The different parts are:
Syntax parts | Description |
|---|---|
| Commands that define an operation to be performed. |
| Command line options that define actions to be performed. These options can be placed anywhere on the command line, but must come before |
| Compiler or linker command line for the |
For an example, see Performing an analysis from the command line.
Summary of icstat commands
This table summarizes the icstat commands:
icstat commands | Description |
|---|---|
| Analyzes a source file. The command line must end with a compiler invocation ( |
| Analyzes an application. The command line must end with a linker invocation ( |
| Outputs the analysis messages from the database file. |
| Clears the database file. |
| Executes the commands in the |
For an example, see Performing an analysis from the command line.
When running icstat with the commands analyze or link_analyze, identified deviations will be listed on stdout on the format:
Severity[check-tag]:message.Alias tags.
Summary of icstat options
This table summarizes the icstat options:
Command line option | Description |
|---|---|
| Specifies the manifest file, which contains the checks to perform. |
| Contains analysis information (mandatory). |
| Ensures a deterministic amount of messages when running |
| Excludes file(s) from the analysis. |
| Makes |
| Makes |
| Specifies the number maximum number of threads to use during parallel analysis. |
| Specifies that the output from an analysis should be stored in the SARIF format, and where to store it. |
| Specifies the number of seconds that the analysis of a module is allowed to take before it terminates. |
| Specifies the number of seconds that the each check is allowed to take before the analysis terminates. |
For more information, see Descriptions of C-STAT options.