Menu

If initialization c++17 [BUG]

2019-03-29
2019-03-29
  • Julien Quilez

    Julien Quilez - 2019-03-29

    Hi,
    I would like to report a bug.
    The latest version (cppcheck 1.87) doesn't support if initialization (c++17).
    If we have a if initialization in our project, the cppcheck analysis break (syntax error)! So, you can't use cppcheck with c++17 code.

    if (const auto size = container.size(); size > 0)
    {
        // code ...
    }
    

    Thanks,

     
  • versat

    versat - 2019-03-29
     

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.