CppCheck Plugin - Static analysis of C/C++ code
Cppcheck does static analysis of C/C++ code. It checks for: memory leaks, mismatching allocation-deallocation, buffer overrun, and many more. The goal is 0% false positives
Read more here
How does it work?
From within codelite, you can start Cppcheck by right clicking any of:
- a file in the 'File Explorer' tree; only this file will be checked.
- a folder in the 'File Explorer' tree; only this folder's contents will be checked.
- a Project icon in the workspace view; just this project's files will be checked.
- the Workspace icon in the workspace view; the whole workspace will be checked.
Then select the cppcheck -> Run cppcheck
This will bring up the 'CppCheck' progress report tab (part of the 'Output' view)
An example:
![]() |
Settings
From the Plugins menu, you may select the CppCheck -> Settings options, which will open the 'CppCheck' dialog.
This dialog consists of 2 tabs:
- The 'General' tab
- The 'Exclude files' tab
General tab
The general tab allows the user to set on and off the various check options of the cppcheck tool.
Exclude files tab
In this tab, the user may add files which will be excluded during the check. This saves time by stopping cppcheck analysing uninteresting files.


