cppcheck
cppcheck copied to clipboard
static analysis of C/C++ code
This is a "blackbox test" to ensure it works. We also need more unit tests.
The code which checks for unique error messages did not apply the template configuration which lead to suppression of unique messages: ``` (information) Cppcheck cannot find all the include files...
It seems the way how the fuzzing works was misunderstood. The existing code used what the fuzzer was feeding us and tried to incorporate into a generated framework of valid...
``` /home/user/CLionProjects/cppcheck-rider/lib/checkautovariables.cpp:61:105: runtime error: member access within null pointer of type 'const Scope' #0 0x58828480410b in isArrayArg(Token const*, Settings const*) /home/user/CLionProjects/cppcheck-rider/lib/checkautovariables.cpp:61:105 #1 0x588284801124 in CheckAutoVariables::autoVariables() /home/user/CLionProjects/cppcheck-rider/lib/checkautovariables.cpp:293:50 #2 0x58828481985f in CheckAutoVariables::runChecks(Tokenizer...
This allows us to simply load the given library from the filesystem instead of converting it. See #4325 for the PR to get rid of the hard-coded platform data.