Summary: | [check proposal] not emitting signals in noexcept function | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Jean-Michaël Celerier <jeanmichael.celerier> |
Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | All | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jean-Michaël Celerier
2019-08-09 08:33:25 UTC
>> The check could be relaxed if the slot of the signal is also marked noexcept.
Maybe not, as signals don't know (or shouldn't know) which slots are connected to them. So I would make this check look at all methods.
In terms of implementation, catch all CallExpr, check if it's a signal (there's helpers for that already), check if method is noexpr.
|