Bug 407322 - suggest to use QRegularExpressionMatch::capturedRef
Summary: suggest to use QRegularExpressionMatch::capturedRef
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 07:30 UTC by Milian Wolff
Modified: 2021-05-15 10:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milian Wolff 2019-05-08 07:30:52 UTC
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