HP Code Advisor C.02.25 User Guide (5900-1864, August 2012)
Example 40 Generating detailed diff report without using -approot option
$ cadvise report -pdb new.pdb -basepdb old.pdb -all
Report generated using "HP Code Advisor C.XX.XX [Release Date]" on <Machine Name> at <Time>
Report command line: "Report Command Line"
New Pdb: new.pdb
Base Pdb: old.pdb
Regressions: 1 =>2223(1)
Improvements: 2 =>2223(1), 2549(1)
=======================[ REGRESSIONS ]===========================
"/home/rajen/cadvise/testing/approot_cases/new/1.c", line 4: warning #2223-D: function "printf" declared
implicitly
printf("Hi");
^
=======================[ IMPROVEMENTS ]===========================
"/home/rajen/cadvise/testing/approot_cases/old/1.c", line 4: warning #2223-D: function "printf" declared
implicitly
printf("Hi");
^
"/home/rajen/cadvise/testing/approot_cases/old/1.c", line 5: warning #2549-D: variable "y" is used before its
value is set
if (x = y)
^
Example 41 Generating a detailed diff report using -approot option
$ cadvise report -pdb new.pdb -basepdb old.pdb -approot old:new -all
Report generated using "HP Code Advisor C.XX.XX [Release Date]" on <Machine Name> at <Time>
Report command line: "Report Command Line"
New Pdb: new.pdb
Base Pdb: old.pdb
Regressions: 0 Improvements: 1 =>2549(1)
=======================[ IMPROVEMENTS ]===========================
"/home/rajen/cadvise/testing/approot_cases/new/1.c", line 5: warning #2549-D: variable "y" is used before its
value is set
if (x = y)
^
As shown in above examples, warning#2223 is emitted at line 4 and is common in both PDBs. User might want to
ignore such duplicate warnings while comparing two different versions of PDBs, and hence the -approot option
serves the purpose for effective comparison of different PDBs.
6.17 Report options file
All the options that you want to use to generate the report can be consolidated in a single
configuration file using the +opts <file> option. This reduces the clutter on the command line
and provides a single place to specify the customized options. Comment lines can also be inserted
in the +opts configuration file. This option is used for reading reporting options from the specified
<file>. The following example shows the reading of report options from a specific file.
38 Generating reports