It seems to me that nullptr is not supported in C23. According to the man, the latest supported C standard is C11. C23 introduced nullptr, which is the exact same as nullptr in C++. Since this is not recognised by cppcheck, this breaks many critical checks. So far I had to suppress:
nullPointerOutOfMemory
nullPointerArithmeticOutOfMemory
memleak
Do you think that is something that could be added without having to catch up to the whole c17/c23 std ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
It seems to me that nullptr is not supported in C23. According to the man, the latest supported C standard is C11. C23 introduced nullptr, which is the exact same as nullptr in C++. Since this is not recognised by cppcheck, this breaks many critical checks. So far I had to suppress:
Do you think that is something that could be added without having to catch up to the whole c17/c23 std ?
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/13959