[clazy] [Bug 385544] New: Validate regular expressions passed to QRegExp and QRegularExpression
Thomas Fischer
bugzilla_noreply at kde.org
Tue Oct 10 08:33:33 BST 2017
https://bugs.kde.org/show_bug.cgi?id=385544
Bug ID: 385544
Summary: Validate regular expressions passed to QRegExp and
QRegularExpression
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: fischer at unix-ag.uni-kl.de
CC: smartins at kde.org
Target Milestone: ---
It would be nice if clazy could validate regular expressions passed in text
form to QRegExp or QRegularExpression.
This should be either done by trying to parse/compile the regular expression
passed to either class or by checking the passed regular expression for common
mistakes (see examples below) based on context-sensitive text patterns rather
than compiling the expression.
Example for which clazy should warn (passing raw char* to constructors to keep
examples brief):
QRegularExpression("\bA"); // should be \\bA
QRegExp("v\\d([.]\\d)*)"); // mismatching parentheses
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list