Had a bug in this code:
bool x;
for(const auto a : b)
{
x = x && a.b;
}
x should have initialized to true.
I'd like to raise a compiler error that the bool wasn't explicitly initialized, but I cannot find a warning which covers this. We have the obvious flags:
-Wall \
-pedantic \
-Werror=uninitialized \
Is there another Clang warning that would catch this and other uninitialized variables?