Qt-UnusedNonTrivialVariable¶
Warns about unused Qt value classes
Required inputs: IR
This rule is based on clazy rule unused-non-trivial-variable
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
unused_qt_variable |
Unused variable of type {}. |
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
consider_types¶
consider_types : set[bauhaus.analysis.config.GlobPattern] = set()
ignore_types¶
ignore_types : set[bauhaus.analysis.config.GlobPattern] = set()
level¶
level : int = 0
predefined_consider_types¶
predefined_consider_types
Unused variables of the types named here will be reported unless they should be ignored. Globbing patterns are supported. If this entry is set to empty (and consider_types remains empty) then any type (i.e. all types) will considered but may be explicitly ignored.Type: set[bauhaus.analysis.config.GlobPattern]
Default:
{'QAssociativeIterable', 'QBitArray', 'QBitmap', 'QBrush', 'QBuffer', 'QByteArray', 'QByteArrayList', 'QCache', 'QCollator', 'QCollatorSortKey', 'QColor', 'QCursor', 'QDateTime', 'QDir', 'QDomNode', 'QEvent', 'QFileInfo', 'QFont', 'QFontInfo', 'QFontMetrics', 'QFontMetricsF', 'QHash', 'QHostAddress', 'QIcon', 'QImage', 'QJSValue', 'QJsonArray', 'QJsonDocument', 'QLine', 'QLineF', 'QLinkedList', 'QList', 'QListSpecialMethods', 'QLocale', 'QMap', 'QMimeType', 'QMultiHash', 'QMultiMap', 'QNetworkConfiguration', 'QNetworkCookie', 'QNetworkRequest', 'QPainterPath', 'QPalette', 'QPen', 'QPersistentModelIndex', 'QPicture', 'QPixmap', 'QQueue', 'QRect', 'QRectF', 'QRegExp', 'QRegion', 'QRegularExpression', 'QSequentialIterable', 'QSet', 'QSqlField', 'QSqlQuery', 'QSqlRecord', 'QStack', 'QStaticText', 'QStorageInfo', 'QString', 'QStringRef', 'QTextCursor', 'QTextFrameFormat', 'QTextImageFormat', 'QUrl', 'QUrlQuery', 'QVarLengthArray', 'QVariant', 'QVector'}
predefined_ignore_types¶
predefined_ignore_types
Variables of the types named here are ignored in this check. Globbing patterns are supported.Type: set[bauhaus.analysis.config.GlobPattern]
Default:
{'PRNGLocker', 'QBoolBlocker', 'QDBusBlockingCallWatcher', 'QDBusWriteLocker', 'QDebugStateSaver', 'QMutexLocker', 'QOrderedMutexLocker', 'QReadLocker', 'QScopedPointer', 'QScopedScopeLevelCounter', 'QScopedValueRollback', 'QSetValueOnDestroy', 'QSignalBlocker', 'QTextBlockFormat', 'QTextLine', 'QWriteLocker'}