[llvm-dev] False positive #2, std::move warning on clang 9.0.1 --analyze
clang --analyze emits a warning about invoking functions on moved objects
that should not be there.
If you call subfld.reset() directly, the warning goes away. This suggests
"reset" is hardcoded in the analyzer, and that it is only valid for the "first"
nesting level. Having reset inside rezet and calling rezet, and the warning
appears (as shown):