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

I've just adjusted `lib/preprocessor.cpp` so that it will not warn anyone it can't find the header files. My idea here is that if this >Please note: Cppcheck does not need...

This introduces `Token::exactMatch()` to use when the pattern to match is just a single one replacing calls like `Token::simpleMatch(tok, "this")`. Using GCC 11 it is unfortunately a bit slower going...

I'm at the point where I'd like some feedback on this (incomplete) solution to https://trac.cppcheck.net/ticket/9960 In a nutshell, the problem is that cppcheck sometimes does a poor job of distinguishing...

IAR Export of compile_database.json contains information about the linking step. The format of this entry is. `{ "arguments": ["FOO"] "directory": "BAR" "files": ["BAZ"] "type": "LINKER" }` CppCheck fails with "ICOJSON_ASSERT("type...

``` void f() { char foo[2][2]; char *bar[2]; bar[0] = foo[0]; bar[1] = foo[1]; bar[0][0] = 'a'; } ``` would give a FP: ``` [test.cpp:2]: (style) Variable 'foo' can be...

Add two command line options: --clang-tidy: run clang-tidy, needs to be in PATH and only in combination with --project pointing at VS sln or compile-commands.json (not needed when using GUI...

# declaration int redisFormatCommand(char **target, const char *format, ...); # len = redisFormatCommand(&cmd,"SET %s %s","foo","bar"); # "foo" and "bar" is ... File "Release/misra/addons/misra.py", line 4157, in executeCheck check_function(*args) File "Release/misra/addons/misra.py",...