[Interest] Local QRegularExpression variables
NIkolai Marchenko
enmarantispam at gmail.com
Mon Sep 25 03:34:02 CEST 2023
Clang has warnings about using local regular expression objects and
recommends creating them statically, but seemingly only when the pattern
isn't QStringLiteral. Is it an oversight in clang's detection system or
stringliteral'd regular expressions are so much cheaper that it doesn't
deserve a warning?
I've delved into qt sources for a bit, but it doesn't seem like string
literal dodges the necessity to compile a regex so I assume clang's
detection is incomplete, right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230925/230c987d/attachment.htm>
More information about the Interest
mailing list