On Sunday, 24 September 2023 18:34:02 PDT NIkolai Marchenko wrote:
> 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?

The expense is in QRegularExpression, so it doesn't matter where the pattern 
came from. That's a limitation in the detection system then.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to