...ENDING)
...
[clang-tidy] Catch trivially true statements like a != 1 || a != 3
Differential D29857
Catch trivially true statements of the form a != 1 || a != 3. Statements like
these are likely errors. They are particularly easy to miss when handling enums:
enum State {
RUNNING,
STOPPED,
STARTING,
ENDING
}
...
if (state != RUNNING || state !=... watsond on Feb 10 2017, 4:51 PM. Authored by
Details
Diff Detail
Event TimelineComment Actions Updating D29857: Catch trivially true statements of the form a != 1 || a != 3. Statements likethese are likely errors. They are particularly easy to miss when handling enums: enum State { ... |