Thanks for reporting.
Three constPointer FPs are tracked here: https://trac.cppcheck.net/ticket/13801
The containerOutOfBounds FP should be fixed already.
Last edit: CHR 2025-04-25
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I made a sample to reproduce those false/positives (see attached) main.cpp file.
Cédric
Thanks for reporting.
Three
constPointer
FPs are tracked here: https://trac.cppcheck.net/ticket/13801The
containerOutOfBounds
FP should be fixed already.Last edit: CHR 2025-04-25
knownConditionTrueFalse
: https://trac.cppcheck.net/ticket/13802throwInNoexceptFunction
: https://trac.cppcheck.net/ticket/13803identicalConditionAfterEarlyExit
: https://trac.cppcheck.net/ticket/13804