Why is this an issue?
Sharing some naming conventions enables teams to collaborate more efficiently. This rule checks that all union
names match a provided
regular expression.
Noncompliant code example
Using the default regular expression ^[A-Z][a-zA-Z0-9]*$
:
union my_union {
int one;
int two;
};
Compliant solution
union MyUnion {
int one;
int two;
};