HP Code Advisor
1 Introduction
HP Code Advisor (cadvise) is a static analysis tool for C and C++ programs. Cadvise reports
various programming errors in the source code. This tool enables programmers to identify
potential coding errors, porting issues, and security vulnerabilities. Cadvise leverages the
advanced analysis capabilities of HP C and HP aC++ compilers available on the HP Integrity
systems.
This chapter addresses the following topics:
• “Cadvise User Interface” (page 11)
• “Features” (page 11)
1.1 Cadvise User Interface
You can use cadvise through the CLI. Also, you can use the HP Code Advisior GUI, which is
part of the Eclipse Remote Development Plugin run remotely on MS-Windows x86 platforms.
For more information, see http://www.hp.com/go/eclipse-remotedevplugin.
Cadvise takes C or C++source files as inputs for finding potential errors, security violations, and
so on and then stores this information in a Program Database (PDB). The reporting utility helps
you generate reports from the PDB in various formats, such as Text, XML, and HTML.
Figure 1-1 shows the HP Code Advisor components.
Figure 1-1 Cadvise Components (User Interfaces)
1.2 Features
This section discusses the following major features and benefits of cadvise:
• “Advanced Static Code Analysis” (page 12)
• “Defect Detection” (page 12)
• “Security Vulnerability Checks” (page 12)
• “Porting and Migration” (page 12)
1.1 Cadvise User Interface 11