Qt-BaseClassEvent¶
Warns when you return false inside your QObject::event() or QObject::eventFilter() reimplementation
Required inputs: IR
QObject::event()
or QObject::eventFilter() reimplementation. Instead you should
probably call the base class method, so the event is correctly handled.This rule is based on clazy rule base-class-event
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
returns_false |
Return {} instead of false. |
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 = 2
report_direct_qobject_event_filter_redefinition¶
report_direct_qobject_event_filter_redefinition : bool = False
report_qobject_event_filter_redefinitions¶
report_qobject_event_filter_redefinitions : bool = False