I have a struct with many members of the same type, like this
struct VariablePointers {
VariablePtr active;
VariablePtr wasactive;
VariablePtr filename;
For CppCoreCheck there's a rule for checking exactly that, if all members have been initialized and that can be turned from warning into an error - that is usually program-wide of course.
Update:
The rule you want to check is part of typesafety Type.6
:
Type.6: Always initialize a member variable: always initialize, possibly using default constructors or default member initializers.