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.
Details
Details
- Reviewers
cjdb aaron.ballman - Group Reviewers
Restricted Project - Commits
- rG01578153ee82: [clang][Diagnostics][NFC] Don't create oversized CaretLine
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo