Qt-PostEvent¶
Finds places where an event is not correctly passed to QCoreApplication::postEvent()
Required inputs: IR
QCoreApplication::postEvent() expects a heap allocated
event, not a stack allocated one; whereas QCoreApplication::sendEvent()
expects a stack allocated event, not a heap allocated one. The latter may produce
false-positives.This rule is based on clazy rule post-event
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
post_event |
Events passed to postEvent should be heap allocated. |
None |
False |
send_event |
Events passed to sendEvent should be stack allocated. |
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