Affected rules
Description
does not find pointer dereferences for this in member functions.
likely need to extend MembersReturningObject to use getASubobjectAccessOfPointee but right now that duplicates results with MembersReturningSubObject unless other checks are applied to make sure the return is an address or reference
getASubobjectAccessOfPointee would also need to be more thoroughly tested in this case
Example
struct A {
int a;
A &getstructbad2() { return *this; } // NON_COMPLIANT[FALSE_NEGATIVE]
};
Affected rules
Description
does not find pointer dereferences for this in member functions.
likely need to extend
MembersReturningObjectto usegetASubobjectAccessOfPointeebut right now that duplicates results withMembersReturningSubObjectunless other checks are applied to make sure the return is an address or referencegetASubobjectAccessOfPointeewould also need to be more thoroughly tested in this caseExample