CodeQL library for C/C++

Member predicate StructLikeClass::getAGetter

Gets a getter function in this class, getting the given variable. This is a function whose name begins “get”… that reads this variable and no other member variable of the class. In addition, its return type is the type of the corresponding member variable.

MemberFunction getAGetter(MemberVariable v)