HP Code Advisor Reference Card
HP Code Advisor C.02.05 (cadvise)
Feedback: cadvise-help@cup.hp.com More information: www.hp.com/go/cadvise
-html[=dir]
Generate reports in HTML.
Configurability
+Warg1[, arg2, ..., argn]
Disable specific warning numbers arg1 [, arg2,...argn]
-exclude <string1:string2...:stringn>
Suppress diagnostics from files that have any of the specified strings in
the filename path. You can use this option for report generation.
-include <string1:string2...:stringn>
Emit diagnostics from files that contain any of the specified strings in
the filename path. You can use this option for report generation.
+Wmacro:MACRONAME:d1,d2,d3,..dn
Disable warnings in a specified macro.
Program Database (PDB)
-pdb location
Specify the location (path) of the PDB.
-snapshot
Freeze the PDB for future report comparisons.
-pdb_destroy
Destroy PDB.
Cross-file Analysis
-crossfile=[none|pdb|defer|auto|module|list|listfile]
Control cross-file analysis in cadvise. Cross file analysis must be
enabled to use the +wsecurity, +wlock and +wall options.
-crossfile=none
Do not perform any cross-file analysis. This is the default option.
-crossfile=pdb
Perform cross-file analysis for all files in the PDB
-crossfile=defer
Do not perform cross-file analysis automatically. Cadvise defers it until
a later -crossfile=[pdb|module|list|listfile] run.
-crossfile=auto
Perform cross-file analysis automatically when the user performs a link
step. This is the default if PDB is specified.
-crossfile=module:<module_name>
Enable cross-file analysis on the object files that make the binary.
-crossfile=list:<file1:file2:...fileN>
Enable cross-file analysis on the specified object files.
-crossfile=listfile:<list_file_name>
Enable cross-file analysis on all object files specified in the file,
list_file_name.
Other Options
-compiler [aCC|cc|c89|c99|gcc|g++|1d]
Specify the compiler/linker command [compiler-options] used in
user-compile-cmd. This allows mapping of the user command name
to one of the standard commands recognized by cadvise.
-[no]build
Do [not] invoke the user compile/link command. The default is –build.
Automatic cross-file analysis is disabled with –nobuild
.
-[no]abort
Do [not] return a non-zero exit value for cadvise errors. The default is –
noabort.
+opts <filename>
Read options from file.
-h|H|-help
Print a brief description and list of options for cadvise.