Skip to content

Commit

Permalink
fix codeFormat rangeformat bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Nov 30, 2023
1 parent 7b94e88 commit ff45297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CodeFormat/src/CodeFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,5 +251,9 @@ bool InitRangeFormat(CommandLine &cmd, FormatContext &formatContext) {
formatContext.SetFormatRange(false, cmd.Get<std::string>("range-offset"));
}

if (cmd.HasOption("complete-output")) {
formatContext.EnableCompleteOutputRangeSupport();
}

return true;
}

0 comments on commit ff45297

Please sign in to comment.