This is an archive of the discontinued LLVM Phabricator instance.

[clang][Diagnostics][NFC] Don't create oversized CaretLine
ClosedPublic

Authored by tbaeder on May 23 2023, 9:49 PM.

Details

Summary
Instead of creating a CaretLine the size of the SourceLine, just leave
it empty at first, let HighlightRange resize it to fit all the ~, then
resize it to fit the ^. Then we can save ourselves the work to remove
the trailing whitespace again.

Diff Detail

Event Timeline

tbaeder created this revision.May 23 2023, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 9:49 PM
tbaeder requested review of this revision.May 23 2023, 9:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 9:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.May 24 2023, 5:57 AM
This revision was landed with ongoing or failed builds.May 31 2023, 1:21 AM
This revision was automatically updated to reflect the committed changes.