HP-UX Cadvise Brochure
HP Code Advisor C.02.25 (cadvise)
Feedback: cadvise-help@cup.hp.com More information: www.hp.com/go/cadvise
-file_summary
Print summary information for each source file.
-func_summary
Print summary information for each function having diagnostics.
+metrics[=ict]
Print program complexity data for all or selected source files.
-module <name>
Generate report only for source files that make up the module.
-exclude <string1:string2...:stringn>
Suppress printing of diagnostics from source files that have any of the
specified strings in the filename path.
-include <string1:string2:...:stringn>
Generate diagnostics from source files that contain specified strings in
the file name path.
-basepdb <basepdbname>
Generates a summary of differences between the PDB specified with -
pdb option and the basepdbname.
-approot <old application root dir>:<new application root dir>
Ignore difference due to file paths while comparing pdb
generated from old application root(i.e. -basepdb) and new
application root (i.e. -pdb) while using -basepdb option.
-html[=dir]
Generate reports in HTM
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.