Oracle® Solaris Studio 12.4: Code Analyzer User's Guide

Exit Print View

Updated: October 2014
 
 

Static Code Checking

Static code checking detects common programming errors in your code during compilation. The –xprevise=yes option for the C and C++ compilers leverages the compilers' control and data flow analysis frameworks to analyze your application for potential programming and security flaws.


Note -  You can optionally use the –xanalyze=code option to collect static code errors, but this option is EOL. Using the –xprevise=yes option is recommended.

For information on collecting static error data, see Collecting Static Error Data.

For a list of the static code errors the Code Analyzer analyzes, see Static Code Issues.