CleanC Analysis Tools Features
The problems are shown in the CleanC Problem View. Double-clicking a problem will open the file at the exact location of the problem, as you’d expect.
Select the source folder in your C++ Projects View, and launch the CleanC Analysis tools. Either choose to run all the tools, or select specific ones: it is all up to you.
Markers indicate occurrences of CleanC problems. Hover over them to read their description.
You can easily find out all assignments to a pointer variable. To do this, select the variable, right click, and do ‘Variable assignments’.
Other similar you can do are finding function pointer candidates or finding pointer arithmetic. All results can be jumped to directly from the search window.
You can also visualize the CallGraph, which shows functions as boxes and function calls as arrows. In each function the left number indicates how often a function is called (statically) while the number on the rights shows the number of loops in the function body.
Note that the ZGRViewer needs to be installed and configured in the preferences (see below).
Search results are shown in the Search results window. Expand the tree to see all of the results, and go through them by selecting the ones you want to focus on, or use the next and previous arrows to navigate.
Change the Call graph preferences to configure paths and the DOT viewer used for visualizing the call graph. Also set filtering and viewing options.
Problems can be filtered just as in the regular Problem View. They can also be grouped in various ways, as shown in the screenshot
Before starting, make sure that ‘Index All Files’ is checked in the options of your C Project.