Constant condition
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
}
Inspection Details | |
---|---|
Available in: | AppCode 2023.3, CLion 2023.3 |
Plugin: | CLion, 2023.3 |
Last modified: 13 July 2023