This is an archive of the discontinued LLVM Phabricator instance.

[clang][Syntax] Handle invalid source range in expandedTokens.
ClosedPublic

Authored by usaxena95 on Apr 6 2021, 3:00 AM.

Diff Detail

Event Timeline

usaxena95 requested review of this revision.Apr 6 2021, 3:00 AM
usaxena95 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2021, 3:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
usaxena95 edited the summary of this revision. (Show Details)Apr 6 2021, 3:09 AM
usaxena95 added a reviewer: sammccall.
sammccall accepted this revision.Apr 6 2021, 9:12 AM

(Do we have a bug this fixes?)

This revision is now accepted and ready to land.Apr 6 2021, 9:12 AM

Clangd was seen to be crashing on Objective C/C++ files.
It could not be reproduced but inspection of coredump showed that the expandedTokens returned arrayref with begin > end (negative length).

This revision was landed with ongoing or failed builds.Apr 7 2021, 2:19 AM
This revision was automatically updated to reflect the committed changes.