Clazy-Level-0¶
Clazy checks from level 0
Nested Rules
Do not use “auto-connection slots” |
|
Warns when connecting a non-signal to something |
|
Warns when a signal, slot, or invokable declaration is not using fully-qualified type names |
|
Lambdas that capture local variables by reference should not be used inside connect calls |
|
Do not use Qt::UniqueConnection with a functor, lambda or non-member function slot |
|
QML types registered with qmlRegisterType() or qmlRegisterUncreatableType() must start with uppercase |
|
Do not use container keys that might be modified externally |
|
Warns when using old style connects SIGNAL/SLOT, which is slower than using pointer to member syntax |
|
Overloaded signals should be avoided |
|
QDateTime::currentDateTime() should not be used to get UTC |
|
Warns when Q_ENUM could be used instead of Q_ENUMS. Also warns when Q_ENUM is not used properly |
|
Pointer types should not be used as QMap keys |
|
Q_PROPERTY should have either NOTIFY or CONSTANT |
|
Check suspicious arg calls of QString and QLatin1String |
|
Finds cases where QString is being compared to an int literal |
|
Qt macros should not be misused |
|
Warns when iterator objects are implicitly cast to const_iterator |
|
Do not use functions returning iterators on a temporary container |
|
Warns about unused Qt value classes |
|
Catches when calling setters on temporaries |
|
When static_casting a QEvent, cast to the correct type |
|
Finds Q_GLOBAL_STATICs being used with trivial types |
Options
Setting an option for this rule means setting the default for all nested rules.
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
This rule has no individual options.