Example 35 Generating diff report for any particular warning

$ cadvise report -pdb tmp.pdb -basepdb tmp1.pdb -diag 2549

Report generated using "HP Code Advisor C.XX.XX [Release Date]" on <Machine Name> at <Time>

Report command line: "Report Command Line"

New Pdb:

tmp.pdb

Base Pdb:

tmp1.pdb

Regressions:

2 =>2549(2)

Improvements:

0

=======================[ REGRESSIONS ]===========================

"/home/solankib/TESTING/b.c", line 6: warning #2549-D: variable "a" is used before its value is set c = a;

^

"/home/solankib/TESTING/b.c", line 9: warning #2549-D: variable "b" is used before its value is set a = b;

^

The following example shows the usage of -basepdb <basepdbname> detailed diff report with the -includeoption:

Example 36 Generating detailed diff report for any particular file or any group of files

$ cadvise report -pdb tmp.pdb -basepdb tmp1.pdb -include a1.c

Report generated using "HP Code Advisor C.XX.XX [Release Date]" on <Machine Name> at <Time>

Report command line: "Report Command Line"

New Pdb:

tmp.pdb

Base Pdb:

tmp1.pdb

Regressions:

0

Improvements:

1 =>20200(1)

=======================[ IMPROVEMENTS ]===========================

"/home/solankib/TESTING/a1.c", line 11, procedure main: warning #20200-D: Potential null pointer dereference

The following example shows the usage of -basepdb <basepdbname> detailed diff report with the -excludeoption:

Example 37 Generating detailed diff report after excluding any file or any group of files

$ cadvise report -pdb tmp.pdb -basepdb tmp1.pdb -exclude a1.c

Report generated using "HP Code Advisor C.XX.XX [Release Date]" on <Machine Name> at <Time>

Report command line: "Report Command Line"

New Pdb:

tmp.pdb

Base Pdb:

tmp1.pdb

Regressions:

2 =>2549(2)

Improvements:

0

=======================[ REGRESSIONS ]===========================

"/home/solankib/TESTING/b.c", line 6: warning #2549-D: variable "a" is used before its value is set c = a;

^

"/home/solankib/TESTING/b.c", line 9: warning #2549-D: variable "b" is used before its value is set a = b;

^

The following example shows the usage of -basepdb <basepdbname> detailed diff report with the -severityoption:

36 Generating reports

Page 36
Image 36
HP UX Web Development Tools manual Example 35 Generating diff report for any particular warning