This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Move the selection decltype hack to getSourceRange.
ClosedPublic

Authored by hokein on Jan 4 2022, 2:36 AM.

Details

Summary

Previously, it was in canSafelySkipNode, which is only used to decide
whether we should descend into it and its children, and we still used
the incomplete Decltypeloc.getSourceRange() to claim tokens, which will
cause some tokens were not claimed correctly.

Separate a change of https://reviews.llvm.org/D116536

Diff Detail

Event Timeline

hokein created this revision.Jan 4 2022, 2:36 AM
hokein requested review of this revision.Jan 4 2022, 2:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2022, 2:36 AM
sammccall accepted this revision.Jan 4 2022, 2:42 AM
This revision is now accepted and ready to land.Jan 4 2022, 2:42 AM
This revision was landed with ongoing or failed builds.Jan 4 2022, 3:12 AM
This revision was automatically updated to reflect the committed changes.