[clazy] [Bug 363540] New: detaching-member false positive if non-const reference is stored

Nyall Dawson via KDE Bugzilla bugzilla_noreply at kde.org
Thu May 26 11:52:01 BST 2016


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: unassigned-bugs at kde.org
          Reporter: nyall.dawson at gmail.com
                CC: smartins at kde.org

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 the assignee for the bug.



More information about the Unassigned-bugs mailing list