cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

static analysis of C/C++ code

Results 369 cppcheck issues
Sort by recently updated
recently updated
newest added

This appears to be quite beneficial (cppcheck gets twice as fast on some files). This is a first proposal, it is not supposed to be merged as it is now...

Severity: Style Usually, the variable which is initialized in the for loop is the same variable we would like to use in the rest of the loop. When we write...

In C language, we often allocate dynamic memory using functions such as malloc, realloc, calloc, ect. When using these functions, it is important to check that the size of the...

We should specify and properly check the tooling we (cl)aim to support. Please feel free to post any additions/omissions as well as opinions and open talking points. At the end...

in Debian 11 which is Bullseye, /usr/bin/python is a Python2 interpreter, which means that cppcheck-htmlreport fails to run here. So I've changed the shebang to use python3 I'm really not...

There are various hard-coded lists of these across the code. Some of them are even incomplete, contain non-keywords or attribute keywords to a standard they do not belong to. This...

The cleanups without the `SmallVector` usage somehow cause a performance regression I still need to look into.

Fixes cppcheck 2.7 regression and adds support for proper (i hope) asm labels processing (https://gcc.gnu.org/onlinedocs/gcc/Asm-Labels.html). How it looks in cppcheck 2.7: ``` $ cppcheck asmlabel.c Checking asmlabel.c ... asmlabel.c:2:7: error:...