Tutorials

We have provided a set of tutorials and sample source files to introduce you to the features of CodeSonar. If you have never used CodeSonar before we recommend that you begin with the basic tutorial.

Basic Tutorial Learn how to run the CodeSonar analysis on a software project and interpret the results.
Custom Checking with the Extension API Compile a file containing a custom check and add it to a CodeSonar project that includes code to exercise the new check. Extension: write a new check.
CustomTaint-Related Checks with the Extension API Compile a file containing custom library models that perform taint tracking and checking, add it to a project that includes code to exercise the new check. Extension: add a further library model to perform additional taint checking.
Custom Checking with CodeSonar Plug-Ins Examine annotated plug-ins in C++, Python, and C; install a plug-in so that it is run during the CodeSonar analysis.
Eclipse Tutorial Use the CodeSonar plug-in for Eclipse to build and analyze a sample program, then to browse and interpret the analysis results.
Visual Studio Tutorial Use the CodeSonar plug-in for Visual Studio to build and analyze a sample program, then to browse and interpret the analysis results.
Adding a Custom Authentication Mechanism Walk through the steps for adding a custom hub authentication plug-in using a simple example. A more complex example is available for users that are interested.
AST API Tutorial Examine C++, Python, and C plug-ins that use the AST API to implement a custom check; install a plug-in so that it is run during the CodeSonar analysis.

You may also be interested in the Typical CodeSonar Tasks.