Menu

support nullptr for C23

gruk
2025-06-22
2025-06-23
  • gruk

    gruk - 2025-06-22

    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:

    • nullPointerOutOfMemory
    • nullPointerArithmeticOutOfMemory
    • memleak

    Do you think that is something that could be added without having to catch up to the whole c17/c23 std ?

     
  • CHR

    CHR - 2025-06-23

    Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/13959

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.