This is an archive of the discontinued LLVM Phabricator instance.

[clang][Diagnostics] Merge byte/column mapping functions into one.
ClosedPublic

Authored by tbaeder on May 22 2023, 7:17 AM.

Details

Summary
They were both only called from one place and did very similar things.
Merge them into one, so we only have to iterate the source line once to
generate the SourceMap.

Diff Detail

Event Timeline

tbaeder created this revision.May 22 2023, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 7:17 AM
tbaeder requested review of this revision.May 22 2023, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 7:17 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.May 22 2023, 8:57 AM

LGTM, please add NFC to the patch summary when you land though.

This revision is now accepted and ready to land.May 22 2023, 8:57 AM