Skip to content

add check: Use Static QRegularExpression

Waqar Ahmed requested to merge work/use-static-qregularexpression into master

This check checks for cases like:

if (QString.contains(QRegularExpression("[a-z]")) { ... }

and suggests to use a static QRegularExpression instance because QRegularExpression will compile the pattern each time which can be bad for performance.

Merge request reports