CodeQL library for C/C++

Member predicate Class::accessOfBaseMember

Gets the access specifier, if any, that member has when viewed as a member of this, where member may come from a base class of this. Encodes the rules of C++14 11.2/1 and 11.6/1, except that this predicate includes the case of base = this.

AccessSpecifier accessOfBaseMember(Declaration member)