Qt-CtorMissingParentArgument¶
Warns when QObject derived classes do not have at least one constructor receiving a QObject
Required inputs: IR
This is an attempt to catch classes which are missing the parent argument.
It does not have false-positives, but might miss true-positives. For example,
if you have a CTOR which receives a QObject* but then forget to pass it to the
base CTOR.
This rule is based on clazy rule ctor-missing-parent-argument
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
warning |
Class {} should take {} parent argument in its constructor. |
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