This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Also mark output arguments of array subscript expressions
ClosedPublic

Authored by ckandeler on Jun 30 2022, 1:41 AM.

Details

Summary

... with the "usedAsMutableReference" semantic token modifier.
It's quite unusual to declare the index parameter of a subscript
operator as a non-const reference type, but arguably that makes it even
more helpful to be aware of it when working with such code.

Diff Detail

Event Timeline

ckandeler created this revision.Jun 30 2022, 1:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2022, 1:41 AM
ckandeler requested review of this revision.Jun 30 2022, 1:41 AM
nridge accepted this revision.Jul 1 2022, 1:42 AM

Makes sense. Thanks!

This revision is now accepted and ready to land.Jul 1 2022, 1:42 AM