6.2 Generating summary reports

The -summaryoption 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

--------------------------------------------------------------------------------

51 warning #4228-D: 64 bit migration: conversion from %t1 to a more strictly aligned type %t2 may cause misaligned access

51 warning #4230-D: 64 bit migration: conversion from %t1 to %t2 may cause target of pointers to have a different size

NOTE: When the -alloption is used along with -summaryoption, cadvise report first prints the summary followed by the -alloutput.

6.3 Generating file summary report

The -file_summaryoption 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. The following example shows the summary information for a source file.

Example 22 Generating file summary report

$cadvise report -file_summary -pdb testpdb

----------------------------------------------------------------------

CountDuplicateFilename

-----------------------------------------------------------------------

20example.C

-----------------------------------------------------------------------

6.4 Generating detailed report

The -alloption prints all messages in the log-file that are above the specified severity level, sorted by severity. If no severity level is specified then all messages with severity >= 5 are printed. The following example shows the usage of -allreport:

28 Generating reports