Miscellaneous-NoConstOnLHS¶
Put constants on right side of equality comparisons in conditions
Required inputs: IR
== comparisons where the right-hand side is a mutable lvalue,
and the left-hand side is either an rvalue or a const-qualified lvalue.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
mut_lvalue_should_be_lhs |
Put mutable lvalue operand on left side of equality comparisons. |
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
only_report_compile_time_constant¶
only_report_compile_time_constant : bool = False