Example 39 Generating detailed diff report without using
$ 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
printf("Hi");
^
=======================[ IMPROVEMENTS ]===========================
"/home/rajen/cadvise/testing/approot_cases/old/1.c", line 4: warning
printf("Hi");
^
"/home/rajen/cadvise/testing/approot_cases/old/1.c", line 5: warning
if (x = y)
^
Example 40 Generating a detailed diff report using
$ cadvise report
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
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
6.16 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