Re: [Interest] Local QRegularExpression variables

2023-09-25 Thread Thiago Macieira
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 > stringliter

[Interest] Local QRegularExpression variables

2023-09-24 Thread NIkolai Marchenko
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 warn