HP Code Advisor

7 Miscellaneous Driver Options
You can also use the following cadvise options to manage the static analysis and the compilation
processes:
Specifies the compiler or linker command used in the command line.-compiler
[aCC|cc|c89|c99|gcc|g++|ld]
Displays the complete list of cadvise options with a brief description for each option.-help|-h|-H
Determines whether to return a non-zero exit value for cadvise errors. The default
is -noabort.
-[no]abort
Determines whether to invoke the compile or link command after the cadvise static
analysis.
-nobuild
Reduces the build only to modified elements when used with -nobuild option.-target[=.ext|filename]
Writes the errors and diagnostics found during the analysis of the application to
standard error in addition to storing them in the PDB.
-tee
Enables you to consolidate all options which manage HP Code Advisor diagnostic
messages in a single configuration file.
+opts <filename>
-compiler [aCC|cc|c89|c99|gcc|g++|ld] This option helps in mapping the compile
command in the build line to the standard commands recognized by cadvise. The syntax
for specifying the compiler or linker command used in the command line is as mentioned
below:
$ cadvise -compiler compile-cmd <compilation path> -w <filename>
The following example shows the usage of -compiler [aCC|cc|c89|c99|gcc|g++|ld]
option.
Example 7-1 Specifying the compiler command used in the command line
$ cadvise -compiler cc /opt/ansic/bin/cc -w t1.c
-help|-h|-H This option displays the complete list of cadvise options with a brief description
for each option. The syntax for displaying the complete list of cadvise options is as mentioned
below:
Example 7-2 Displaying the list of cadvise options
/opt/cadvise/bin/cadvise h
-[no]abort This option determines whether to return a non-zero exit value for cadvise
errors. The default is -noabort. The syntax for determining the exit value for cadvise errors
is as mentioned below:
$ cadvise -abort <compilation path> -w <filename>
The following example shows the usage of -[no]abort option.
Example 7-3 Using -[no]abort
$ cadvise -abort /opt/ansic/bin/cc -w t1.c
-nobuild The cross-file analysis is disabled when you use the -nobuild option. You can
use the -crossfile=defer option to enable cross-file analysis. The default is -build.
51