Qt-DetachingTemporary¶
Calling non-const member functions on temporaries should be avoided
Required inputs: IR
getList().first(), which would detach if the container is shared.This rule is based on clazy rule detaching-temporary
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
detaching-temporary |
Calling {} on a temporary detaches |
None |
False |
modifying-temporary |
Modifying temporary containers is pointless and also detaches |
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 = 1