Qt-MutableContainerKey

Do not use container keys that might be modified externally

Required inputs: IR

This rule is based on clazy rule mutable-container-key

Possible Messages

Key

Text

Severity

Disabled

mutable_container_key

{} container key of type “{}” might be modified externally.

None

False

Options

associate_container_types

associate_container_types : set[bauhaus.analysis.config.QualifiedName] = {'QHash', 'QMap'}

The container types to which this check applies.
 

level

level : int = 0

Importance level of the rule as given for clazy. 0 is most desirable, higher values fall off in quality.
 

modifiable_key_types

modifiable_key_types : set[bauhaus.analysis.config.QualifiedName] = {'QPersistentModelIndex', 'QPointer', 'QWeakPointer', 'std::weak_ptr'}

Key types that are considered externally modifiable.