Skip to content

Commit 953076d

Browse files
danielmartinjrose-apple
authored andcommitted
Fix coding style in Formatting.cpp (#3493)
1 parent d3d9428 commit 953076d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/IDE/Formatting.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -845,15 +845,15 @@ std::pair<LineRange, std::string> swift::ide::reformat(LineRange Range,
845845
CodeFormatOptions Options,
846846
SourceManager &SM,
847847
SourceFile &SF) {
848-
FormatWalker walker(SF, SM);
849-
auto SourceBufferID = SF.getBufferID().getValue();
850-
StringRef Text = SM.getLLVMSourceMgr()
851-
.getMemoryBuffer(SourceBufferID)->getBuffer();
852-
size_t Offset = getOffsetOfTrimmedLine(Range.startLine(), Text);
853-
SourceLoc Loc = SM.getLocForBufferStart(SourceBufferID)
854-
.getAdvancedLoc(Offset);
855-
FormatContext FC = walker.walkToLocation(Loc);
856-
CodeFormatter CF(Options);
857-
return CF.indent(Range.startLine(), FC, Text);
848+
FormatWalker walker(SF, SM);
849+
auto SourceBufferID = SF.getBufferID().getValue();
850+
StringRef Text = SM.getLLVMSourceMgr()
851+
.getMemoryBuffer(SourceBufferID)->getBuffer();
852+
size_t Offset = getOffsetOfTrimmedLine(Range.startLine(), Text);
853+
SourceLoc Loc = SM.getLocForBufferStart(SourceBufferID)
854+
.getAdvancedLoc(Offset);
855+
FormatContext FC = walker.walkToLocation(Loc);
856+
CodeFormatter CF(Options);
857+
return CF.indent(Range.startLine(), FC, Text);
858858
}
859859

0 commit comments

Comments
 (0)