This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Dont run raw-lexer for OOB source locations
ClosedPublic

Authored by kadircet on May 24 2023, 5:25 AM.

Details

Summary

We can get stale source locations from preamble, make sure we don't
access those locations without checking first.

Fixes https://github.com/clangd/clangd/issues/1636.

Diff Detail

Event Timeline

kadircet created this revision.May 24 2023, 5:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 5:25 AM
Herald added a subscriber: arphaman. · View Herald Transcript
kadircet requested review of this revision.May 24 2023, 5:25 AM
hokein accepted this revision.May 25 2023, 12:23 AM
This revision is now accepted and ready to land.May 25 2023, 12:23 AM
This revision was automatically updated to reflect the committed changes.