Clazy-Level-0

Clazy checks from level 0

Nested Rules

Qt-ConnectByName

Do not use “auto-connection slots”

Qt-ConnectNonSignal

Warns when connecting a non-signal to something

Qt-FullyQualifiedMocTypes

Warns when a signal, slot, or invokable declaration is not using fully-qualified type names

Qt-LambdaInConnect

Lambdas that capture local variables by reference should not be used inside connect calls

Qt-LambdaUniqueConnection

Do not use Qt::UniqueConnection with a functor, lambda or non-member function slot

Qt-LowercaseQmlTypeName

QML types registered with qmlRegisterType() or qmlRegisterUncreatableType() must start with uppercase

Qt-MutableContainerKey

Do not use container keys that might be modified externally

Qt-OldStyleConnect

Warns when using old style connects SIGNAL/SLOT, which is slower than using pointer to member syntax

Qt-OverloadedSignal

Overloaded signals should be avoided

Qt-QDateTimeUTC

QDateTime::currentDateTime() should not be used to get UTC

Qt-QEnums

Warns when Q_ENUM could be used instead of Q_ENUMS. Also warns when Q_ENUM is not used properly

Qt-QMapWithPointerKey

Pointer types should not be used as QMap keys

Qt-QPropertyWithoutNotify

Q_PROPERTY should have either NOTIFY or CONSTANT

Qt-QStringArg

Check suspicious arg calls of QString and QLatin1String

Qt-QStringComparisonToImplicitChar

Finds cases where QString is being compared to an int literal

Qt-QtMacros

Qt macros should not be misused

Qt-StrictIterators

Warns when iterator objects are implicitly cast to const_iterator

Qt-TemporaryIterator

Do not use functions returning iterators on a temporary container

Qt-UnusedNonTrivialVariable

Warns about unused Qt value classes

Qt-WritingToTemporary

Catches when calling setters on temporaries

Qt-WrongQEventCast

When static_casting a QEvent, cast to the correct type

Qt-WrongQGlobalStatic

Finds Q_GLOBAL_STATICs being used with trivial types

Options