[llvm-bugs] [Bug 35000] New: [refactoring] idea: convert a ternary operator into an if statement and vice-versa
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 19 09:57:46 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=35000
Bug ID: 35000
Summary: [refactoring] idea: convert a ternary operator into an
if statement and vice-versa
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: arphaman at gmail.com
CC: klimek at google.com, llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171019/b944f506/attachment.html>
More information about the llvm-bugs
mailing list