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.

Displays the complete list of cadvise options with a brief description for each option.

Determines whether to return a non-zero exit value for cadvise errors. The default is -noabort.

Determines whether to invoke the compile or link command after the cadvise static analysis.

-target[=.extfilename]

Reduces the build only to modified elements when used with -nobuild option.

-tee

Writes the errors and diagnostics found during the analysis of the application to

 

standard error in addition to storing them in the PDB.

+opts <filename>

Enables you to consolidate all options which manage HP Code Advisor diagnostic

 

messages in a single configuration file.

-compiler [aCCccc89c99gccg++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 [aCCccc89c99gccg++ld] option.

Example 46 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 47 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]abortoption.

Example 48 Using -[no]abort

$ cadvise -abort /opt/ansic/bin/cc -w t1.c

42 Miscellaneous driver options

Page 42
Image 42
HP UX Web Development Tools Miscellaneous driver options, Help-h-H, Example 47 Displaying the list of cadvise options