# Using Cppcheck static analyzer tool in Qt Creator IDE

> [Cppcheck](http://cppcheck.sourceforge.net) is a static analysis tool for C/C++ code. Unlike C/C++ compilers and many other analysis tools, it does not detect syntax errors in the code. Cppcheck primarily detects the types of bugs that the compilers normally do not detect. The goal is to detect only real errors in the code (i.e. have zero false positives).

To understated more what a cppcheck as a static analyzer could help you for your project you could read [this article](http://www.viva64.com/en/t/0083/) from a commercial alternative website.

[qtc-cppcheck](https://sourceforge.net/projects/qtc-cppcheck/) is a Qt-Creator Plug-in which allows you to use cppcheck inside Qt-Creator.

# Features

*   Automatically check active project after build
*   Automatically check active project’s files on save
*   Manually check any project’s file
*   Display found an error in task pan (with marks in the editor)
*   Most settings are configurable

# Screen-shots

!["Integrated CppCheck with QtCreator issue widget
"](https://miro.medium.com/max/2000/1*p57DnmOt3ovK8wHJb45iUw.png)
*Integrated CppCheck with QtCreator issue widget*

!["Access from Tools QtCreator menu
"](https://miro.medium.com/max/2000/1*X2m_KtooBpHpAvA2rHWt1g.png)
*Access from Tools QtCreator menu*

!["Tool Settings in Analyzer QtCreator settings window"](https://miro.medium.com/max/1400/1*y24SAqbcitpwnIkoF4sHgw.png)
*Tool Settings in Analyzer QtCreator settings window*

# Download:

Download the compiled plug-in for your system and the QtCreator App you have from [here](https://sourceforge.net/projects/qtc-cppcheck/).

The source could be downloaded from [here](https://github.com/OneMoreGres/qtc-cppcheck).

---

%[https://medium.com/@foxoman/using-cppcheck-static-analyzer-tool-in-qt-creator-ide-72f7ddf7976d]

---
[![bymecoffe.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1587235304131/Je4ZlrqY6.png)](https://www.buymeacoffee.com/foxoman)
 ***Thank you for your support!***
