Closed
Description
Affected rules
M0-1-4
Description
M0-1-4
identifies single use variables, but for member variables we do not recognise the initialization of variables in an aggregate initializer as a use.
In addition, we should search for other places where we count uses of member variables to ensure this case is also captured there.
Example
struct agg {
int x;
};
void test_agg() {
agg a = {1};
a.x;
}