Cppcheck GUI

With the Cppcheck GUI you can analyze your code.

Quick walk through

Step 1: Create a project.

Create a new project.

In the Paths and Defines tab, it is recommended that you import your project file at the top.

In the Types and Functions tab, try to activate all 3rd party libraries you use (windows, posix, ...).

In the Analysis tab, leave the default settings to start with.

In the Warnings options tab, leave the default settings to start with.

In the Addons tab, leave the default settings to start with.

Step 2: Analyze code.

When the project file has been created, the analysis will start automatically.

While analysis is performed in the background, you can investigate the warnings.

Step 3: Investigate warnings.

In the toolbar you choose what types of warnings you want to see (error/warning/style/performance/portability/information).

All warnings are shown in a list. If you select a warning in the list, then details about that warning is shown below the list.

If you right click on warning(s) then you get a context menu.

Step 4: Configuration.

It is possible to improve configuration to get better analysis. The automatic assumptions are conservative and through configuration those automatic assumptions can be avoided.

TODO: library, contracts