Example 27 Suppressing diagnostics for specific file(s)
$ cadvise report -pdb test.pdb -summary -exclude "inflate.c"
Report generated using "HP Code Advisor C.XX.XX [Release Time]" on <machine> at <Report Time> Report command line: " cadvise report
=============================== SUMMARY REPORT =================================
Unique warnings: 257
Duplicate warnings: 0
Sev. Count | Diagnostic Message | |
5 | 1 | warning |
5 | 4 | warning |
5 | 10 | warning |
5 | 12 | warning |
5 | 20 | warning |
5 | 23 | warning |
3 | 1 | remark |
32 remark
...
6.10Reporting diagnostics from specific files
The
NOTE: You can use the
The following example shows the diagnostics containing strings from 1 to n for a file.
Example 28 Reporting diagnostics from specific file(s).
$ cadvise report -pdb test.pdb -summary -include "inflate.c"
report: warning: Filtering options do not affect
Report generated using "HP Code Advisor C.XX.XX [Release Time]" on <machine> at <Report Time> Report command line: " cadvise report
=============================== SUMMARY REPORT =================================
Unique warnings: 257
Duplicate warnings: 0
Sev. Count Diagnostic Message
5 1 warning
5 4 warning
5 10 warning
5 12 warning
5 20 warning
5 23 warning
3 1 remark
3 2 remark
6.11 Reporting program complexity metrics
The +metrics option reports the metrics in the PDB or metrics log file which is generated when the +metrics option is used during analysis. If you do not specify the +metrics option during analysis, cadvise displays the following warning:
report: warning: No metrics files specified
All options other than
32 Generating reports