Multiple
Constant condition
Warning
Last modified: 03 December 2024 Reports conditions that are always true
or false
and expressions whose value is statically proven to be constant.
Example:
void process(State current) {
current = State::Started;
if (current == State::Stopped) {
//code
}
//code
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
ConstantConditionsOC
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | CLion, 2024.3 |
Thanks for your feedback!
Was this page helpful?