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,
Related ticket: https://trac.cppcheck.net/ticket/8483
Log in to post a comment.
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.
Thanks,
Related ticket: https://trac.cppcheck.net/ticket/8483