[clazy] [Bug 435615] Reproducible crash within clang when attempting to check Akonadi
Jonathan Marten
bugzilla_noreply at kde.org
Sun Apr 11 15:12:31 BST 2021
https://bugs.kde.org/show_bug.cgi?id=435615
--- Comment #3 from Jonathan Marten <jjm at keelhaul.me.uk> ---
Simplifying the regexp in OldStyleConnect::VisitMacroExpands() as follows:
- static regex rx(R"(Q_PRIVATE_SLOT\s*\((.*)\s*,\s*.*\s+(.*)\(.*)");
+ static regex rx(R"(Q_PRIVATE_SLOT\s*\((.*),.*\s(.*)\(.*)");
seems to eliminate the crash. I don't know what sort of pattern the regexp is
intended to match, but believe that the two regexps should be equivalent. For
.*\s* the \s* will never match anything because everything will have been
captured by the .* and for \s*.*\s+ the .* will match anything that the first
\s* doesn't and the second \s+ will only match a single space.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list