HP Code Advisor C.02.25 User Guide (5900-1864, August 2012)
Enables you to compare PDB <pdb-name> with the PDB specified
using -pdb option.
“-basepdb <basepdbname>” (page 34)
Reads the report options from the specified file.“+opts <file>” (page 38)
6.2 Generating summary reports
The -summary option prints the summary information about all messages in the log file in the
order of security level. This is the default.
The following example shows the summary report.
Example 21 Generating summary reports
$cadvise report -summary -pdb testpdb -noheader
=============================== SUMMARY REPORT =================================
Unique warnings: 2
Duplicate warnings: 0
Sev. Count Diagnostic Message
--------------------------------------------------------------------------------
5 1 warning #4228-D: 64 bit migration: conversion from %t1 to a more strictly aligned type %t2 may cause
misaligned access
5 1 warning #4230-D: 64 bit migration: conversion from %t1 to %t2 may cause target of pointers to have
a different size
NOTE: When the -all option is used along with -summary option, cadvise report first prints
the summary followed by the -all output.
6.3 Generating file summary report
The -file_summary option prints the summary information for each source file. All the diagnostic
messages generated for a file are considered and the count for each file is reported. The following
example shows the summary for a source file.
Example 22 Generating file summary report
$cadvise report -file_summary -pdb testpdb
----------------------------------------------------------------------
Count Duplicate Filename
-----------------------------------------------------------------------
2 0 example.C
-----------------------------------------------------------------------
6.4 Generating function summary report
The -func_summary option prints the summary information for each function in a source file, if
it has any diagnostic. All the diagnostic messages generated for a function are considered and
the count for each function is reported. The following example shows the summary for a function.
28 Generating reports