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,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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