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: unassignedclangb...@nondot.org
          Reporter: arpha...@gmail.com
                CC: kli...@google.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to