[clazy] [Bug 398633] Feature request add tests for qt containers and qobjects
Sergio Martins
bugzilla_noreply at kde.org
Sat Sep 15 19:15:49 BST 2018
https://bugs.kde.org/show_bug.cgi?id=398633
Sergio Martins <smartins at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Severity|normal |wishlist
Status|UNCONFIRMED |CONFIRMED
--- Comment #1 from Sergio Martins <smartins at kde.org> ---
Your 1st case is difficult to make a generic check for, as there's hundreds of
little variations.
Your 2nd case could be done, and we could make the following guideline:
"If you use qobject_cast you should verify the pointer isn't null before
dereferencing i. And if you're sure it's not null then you should have used
static_cast in the first place"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list