[clazy] [Bug 403394] New: Warn about missed override of helper functions for QException descendants
Roman
bugzilla_noreply at kde.org
Sat Jan 19 12:22:46 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=403394
Bug ID: 403394
Summary: Warn about missed override of helper functions for
QException descendants
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: dismine at gmail.com
CC: smartins at kde.org
Target Milestone: ---
According to documentation for the QException class, Qt Concurrent supports
throwing and catching exceptions across thread boundaries, provided that the
exception inherit from QException and implement two helper functions.
class MyException : public QException
{
public:
void raise() const override { throw *this; }
MyException *clone() const override { return new MyException(*this); }
};
If such functions are not overridden in descendants, we can get unexpected
behavior for exception thrown from a thread.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list