CodeQL library for C/C++

Member predicate StructLikeClass::getASetter

Gets a setter function in this class, setting the given variable. This is a function whose name begins “set”… that assigns to this variable and no other member variable of the class. In addition, it takes a single parameter of type the type of the corresponding member variable.

MemberFunction getASetter(MemberVariable v)