This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix an assertion failure on -lines=0:n
ClosedPublic

Authored by owenpan on Jul 8 2022, 12:03 AM.

Details

Summary

Also fixed the error message for start line > end line and added test cases.

Fixes https://github.com/llvm/llvm-project/issues/56438.

Diff Detail

Event Timeline

owenpan created this revision.Jul 8 2022, 12:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 12:03 AM
owenpan requested review of this revision.Jul 8 2022, 12:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 12:03 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jul 8 2022, 12:20 AM
This revision was landed with ongoing or failed builds.Jul 8 2022, 11:41 PM
This revision was automatically updated to reflect the committed changes.