[IDE] Refactoring: Expand a ternary operator into an if statement and vice-versa (#12554)

This commit is contained in:
Roman Roibu
2017-12-21 22:40:30 +02:00
committed by Xi Ge
parent 2c7ccd08a1
commit b2d122c4a7
14 changed files with 714 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ Action(llvm::cl::desc("kind:"), llvm::cl::init(RefactoringKind::None),
"simplify-long-number", "Perform simplify long number literal refactoring"),
clEnumValN(RefactoringKind::ConvertStringsConcatenationToInterpolation,
"strings-concatenation-to-interpolation", "Perform strings concatenation to interpolation refactoring"),
clEnumValN(RefactoringKind::ExpandTernaryExpr,
"expand-ternary-expr", "Perform expand ternary expression"),
clEnumValN(RefactoringKind::ConvertToTernaryExpr,
"convert-to-ternary-expr", "Perform convert to ternary expression"),
clEnumValN(RefactoringKind::ExtractFunction,
"extract-function", "Perform extract function refactoring"),
clEnumValN(RefactoringKind::MoveMembersToExtension,