[clazy] [Bug 379342] clazy-function-args-by-value false positive when ref constructor arg is stored as ref in class

Sergio Martins bugzilla_noreply at kde.org
Sun Apr 30 19:36:44 BST 2017


https://bugs.kde.org/show_bug.cgi?id=379342

Sergio Martins <smartins at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #2 from Sergio Martins <smartins at kde.org> ---
(In reply to markus.enzenberger from comment #0)
> The following snippet creates a clazy-function-args-by-value warning even if
> it is essential to use a reference since the class stores a copy of the
> reference. If the user follows the recommendation by clazy, a bug is
> intruduced in the code, which not every compiler will detect and warn about.

Do you know which compilers actually warn about this ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list