Skip to content

Commit e31bd9d

Browse files
committed
[Gardening] Formatting and typo in swift-refactor.cpp
1 parent bb0c6b3 commit e31bd9d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/swift-refactor/swift-refactor.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ Action(llvm::cl::desc("kind:"), llvm::cl::init(RefactoringKind::None),
5151
clEnumValN(RefactoringKind::ConvertStringsConcatenationToInterpolation,
5252
"strings-concatenation-to-interpolation", "Perform strings concatenation to interpolation refactoring"),
5353
clEnumValN(RefactoringKind::ExpandTernaryExpr,
54-
"expand-ternary-expr", "Perform expand ternary expression"),
54+
"expand-ternary-expr", "Perform expand ternary expression"),
5555
clEnumValN(RefactoringKind::ConvertToTernaryExpr,
5656
"convert-to-ternary-expr", "Perform convert to ternary expression"),
57-
clEnumValN(RefactoringKind::ConvertIfLetExprToGuardExpr,
58-
"convert-to-guard", "Perform convert to guard expression"),
57+
clEnumValN(RefactoringKind::ConvertIfLetExprToGuardExpr,
58+
"convert-to-guard", "Perform convert to guard expression"),
5959
clEnumValN(RefactoringKind::ConvertGuardExprToIfLetExpr,
6060
"convert-to-iflet", "Perform convert to iflet expression"),
6161
clEnumValN(RefactoringKind::ExtractFunction,
@@ -75,8 +75,8 @@ Action(llvm::cl::desc("kind:"), llvm::cl::init(RefactoringKind::None),
7575
clEnumValN(RefactoringKind::MemberwiseInitLocalRefactoring, "memberwise-init", "Generate member wise initializer"),
7676
clEnumValN(RefactoringKind::AddEquatableConformance, "add-equatable-conformance", "Add Equatable conformance"),
7777
clEnumValN(RefactoringKind::ConvertToComputedProperty,
78-
"convert-to-computed-property", "Convert from field initialization to computed property"),
79-
clEnumValN(RefactoringKind::ConvertToSwitchStmt, "convert-to-switch-stmt", "Perform convert to switch statement")));
78+
"convert-to-computed-property", "Convert from field initialization to computed property"),
79+
clEnumValN(RefactoringKind::ConvertToSwitchStmt, "convert-to-switch-stmt", "Perform convert to switch statement"),
8080

8181

8282
static llvm::cl::opt<std::string>
@@ -113,8 +113,8 @@ IsNonProtocolType("is-non-protocol-type",
113113
llvm::cl::desc("The symbol being renamed is a type and not a protocol"));
114114

115115
static llvm::cl::opt<bool>
116-
DumpInJason("dump-json",
117-
llvm::cl::desc("Whether to dump refactoring edits in Json"),
116+
DumpInJson("dump-json",
117+
llvm::cl::desc("Whether to dump refactoring edits in json"),
118118
llvm::cl::init(false));
119119

120120
static llvm::cl::opt<bool>
@@ -373,7 +373,7 @@ int main(int argc, char *argv[]) {
373373
RefactoringConfig.PreferredName = options::NewName;
374374
std::string Error;
375375
std::unique_ptr<SourceEditConsumer> pConsumer;
376-
if (options::DumpInJason)
376+
if (options::DumpInJson)
377377
pConsumer.reset(new SourceEditJsonConsumer(llvm::outs()));
378378
else
379379
pConsumer.reset(new SourceEditOutputConsumer(SF->getASTContext().SourceMgr,

0 commit comments

Comments
 (0)