Qt-ChildEventQObjectCast¶
Finds places within child events where qobject_cast can fail
Required inputs: IR
qobject_cast(event->child())
is being used inside QObject::childEvent() or equivalent
(QObject::event() or QObject::eventFilter())
that can fail because the child might not be totally constructed yet.This rule is based on clazy rule child-event-qobject-cast
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
qobject_cast_in_child_event |
QObject cast in child event. |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
level¶
level : int = 1