[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [clazy] [Bug 379342] clazy-function-args-by-value false positive when ref constructor arg is stored
From: Sergio Martins <bugzilla_noreply () kde ! org>
Date: 2017-04-30 18:36:44
Message-ID: bug-379342-17878-TNWeTv8pZj () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=379342
Sergio Martins <smartins@kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |CONFIRMED
Ever confirmed|0 |1
--- Comment #2 from Sergio Martins <smartins@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 watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic