CppCheck [internalAstError]
Bug report
What happened / Problem description:
When running the Cppcheck (static code analyzer) on dumux. I receive a possible Syntax Error on the dumux/test/common/typetraits/test_isvalid.cc file, but it could also be another false positive :
Checking dumux/test/common/typetraits/test_isvalid.cc ...
dumux/test/common/typetraits/test_isvalid.cc:22:57: error: Syntax Error: AST broken, 'a' doesn't have a parent. [internalAstError]
const auto hasResize = isValid([](auto&& a) -> decltype(a.resize(std::size_t(1))) { });
please see the screenshot below :
What you expected to happen:
No errors from Cppcheck
How to reproduce it (as minimally and precisely as possible):
run Cppcheck 2.10 on DuMux 3.6
Anything else we need to know?:
Environment:
- Dune version: 2.9
- DuMux version: 3.6
- Others: CppCheck 2.10