Qt-ConnectByName¶
Do not use “auto-connection slots”
Required inputs: IR
These types of connections are very brittle, as a simple object rename would break your code. Since Qt 5 the pointer-to-member-function connect syntax is recommended as it catches errors at compile time.
This check simply warns for any slot named like on_, because
even if you are not using .ui files this naming is misleading
and not good for readability, as the reader would think you are using
auto-connection.
This rule is based on clazy rule connect-by-name
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
bad_slot_name |
Slots named {} are error prone. |
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 = 0