I am looking for an easy way to find uninitialized class member variables.
Finding them in either runtime or compile time is OK.
Currently
-Wuninitialized ?
-Wuninitialized
(This only checks if a variable is used uninitialized, i.e. if
struct Q { int x, y; Q() : x(2) {} int get_xy() const { return x*y; } };
g++ will warn only when the user calls get_xy() without assigning to y.)
get_xy()
y