HP Code Advisor
List of Examples
2-1 Updating the makefile to integrate cadvise..................................................................................17
2-2 Sample wrapper script..................................................................................................................18
2-3 Generating code complexity metrics.............................................................................................19
2-4 Code complexity metrics...............................................................................................................21
2-5 Writing a rule to enforce naming convention...............................................................................23
3-1 Specifying the PDB Location.........................................................................................................26
3-2 Destroying PDB.............................................................................................................................26
3-3 Removing object file information from the PDB...........................................................................27
3-4 Creating a PDB snapshot...............................................................................................................27
3-5 Displaying PDB version................................................................................................................27
4-1 Using cross-file analysis automatically during linking.................................................................30
4-2 Delaying cross-file analysis till the specification of crossfile=pdb option....................................30
4-3 Delaying cross-file analysis till the specification of crossfile=module option..............................30
4-4 Delaying cross-file analysis till the specification of crossfile=list option......................................30
4-5 Specifying the location of object files............................................................................................31
5-1 Suppressing diagnostics from specific file(s)................................................................................33
5-2 Emitting diagnostics from a specific file.......................................................................................34
5-3 Suppressing warnings selectively.................................................................................................34
5-4 Enabling warnings selectively.......................................................................................................34
5-5 Interpreting selective warnings as errors......................................................................................34
5-6 Disabling warnings in a macro......................................................................................................35
5-7 Disabling a warning locally...........................................................................................................35
6-1 Generating summary reports........................................................................................................38
6-2 Generating file summary report....................................................................................................38
6-3 Generating detailed report............................................................................................................38
6-4 Generating an XML report............................................................................................................40
6-5 Printing report for a specific diagnostic number(s)......................................................................40
6-6 Generating reports based on severity...........................................................................................41
6-7 Suppressing diagnostics for specific file(s)...................................................................................41
6-8 Reporting diagnostics from specific file(s)....................................................................................42
6-9 Reporting progam complexity metrics.........................................................................................43
6-10 Generating report for a module....................................................................................................44
6-11 Suppressing Report Header..........................................................................................................44
6-12 Modifying the default severity level of diagnostic.......................................................................44
6-13 Generating summary diff report without the header...................................................................45
6-14 Generating detailed diff report with the header...........................................................................45
6-15 Generating diff report for any particular warning........................................................................46
6-16 Generating detailed diff report for any particular file or any group of files................................46
6-17 Generating detailed diff report after excluding any file or any group of files.............................46
6-18 Generating detailed diff report in the warnings greater than or equal to any particular
severity..........................................................................................................................................47
6-19 Report options file.........................................................................................................................47
6-20 Reporting options interoperability................................................................................................48
6-21 Ignoring the -include option.....................................................................................................49
7-1 Specifying the compiler command used in the command line.....................................................51
7-2 Displaying the list of cadvise options...........................................................................................51
7-3 Using -[no]abort............................................................................................................................51
7-4 Using -nobuild option...................................................................................................................52
7-5 Using -target[=.ext|filename] option.............................................................................................52
7-6 Using -tee option...........................................................................................................................52
7-7 Using +opts <filename> option......................................................................................................53
7