[clazy] [Bug 407323] New: suggest fixit for clazy-range-loop
Milian Wolff
bugzilla_noreply at kde.org
Wed May 8 08:39:26 BST 2019
https://bugs.kde.org/show_bug.cgi?id=407323
Bug ID: 407323
Summary: suggest fixit for clazy-range-loop
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: mail at milianw.de
CC: smartins at kde.org
Target Milestone: ---
SUMMARY
currently the clazy report doesn't suggest qAsConst fixit directly, it's only
suggested in the documentation of the clazy-range-loop warning.
OBSERVED RESULT
line 468: for (const auto &p : mParameters)
=> c++11 range-loop might detach Qt container (QVector)
EXPECTED RESULT
line 468: for (const auto &p : mParameters)
=> c++11 range-loop might detach Qt container (QVector), use
qAsConst(mParameters)
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Qt Version:
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list