[clazy] [Bug 407322] New: suggest to use QRegularExpressionMatch::capturedRef
Milian Wolff
bugzilla_noreply at kde.org
Wed May 8 08:30:52 BST 2019
https://bugs.kde.org/show_bug.cgi?id=407322
Bug ID: 407322
Summary: suggest to use QRegularExpressionMatch::capturedRef
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
suggest usage of QRegularExpressionMatch::capturedRef when the returned value
is only used temporarily
STEPS TO REPRODUCE
const QRegularExpression expr;
const auto match = expr.match({});
match.captured(0).mid(1).toInt();
OBSERVED RESULT
we get a suggestion to use midRef instead of mid but no suggestion to use
capturedRef
EXPECTED RESULT
also suggest usage of capturedRef
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