Extended Description
This is a possible idea for a new refactoring action for clang-refactor & editors that support integration with Clang's refactoring engine.
This idea suggests adding a refactoring that can convert a ternary operator into an if statement and vice-versa. For example, this statement:
int x = expression ? a : b;
Can become:
int x;
if (expression) {
x = a;
} else {
x = b;
}
and vice-versa.