https://bugs.kde.org/show_bug.cgi?id=363540
Bug ID: 363540
Summary: detaching-member false positive if non-const reference
is stored
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
The detaching-member test incorrectly flags the following code:
my_class &obj = list[index];
obj.someNonConstMember( 5 );
obj.someOtherNonConstMember( 10 );
Ideally the test would detect that the returned value is being stored in a
non-const reference and not throw the warning.
Reproducible: Always
--
You are receiving this mail because:
You are watching all bug changes.