small Check::analyseWholeProgram() related cleanup#7203
small Check::analyseWholeProgram() related cleanup#7203firewave merged 1 commit intocppcheck-opensource:mainfrom
Check::analyseWholeProgram() related cleanup#7203Conversation
|
The application code was never omitting the |
Check::analyseWholeProgram() related cleanupCheck::analyseWholeProgram() related cleanup
|
It would be nice to have a cppcheck check that could detect such pointer arguments. :-) Maybe not easy to implement, we did pass a nullptr in the testclass. |
There is a ticket about detected unchecked dereferences - but that would not have fired either.
That's why it is good to have an analysis run without the tests included - see the CI run of |
|
The case with unchecked parameters is covered by https://trac.cppcheck.net/ticket/11566. CLion/Rider has a warning if a parameter is always the same value. That would related to an seemingly invalid enhancement request I filed in https://trac.cppcheck.net/ticket/13531. |
Actually Cppcheck also has this as |
Actually that only seems to trigger in very specific cases. |
No description provided.