Adding an access specifier that matches the class' current access level needlessly clutters the code.
Noncompliant code example
struct B {
};
struct S : public B { // Noncompliant; "struct" has public access for its base classes by default
};
class C : private B { // Noncompliant; "class" has private access for its base classes by default
};
Compliant solution
struct B {
};
struct S : B {
};
class C : B {
};