This is an archive of the discontinued LLVM Phabricator instance.

clangd: Add new semantic token modifier "virtual"
ClosedPublic

Authored by ckandeler on Jul 30 2021, 2:51 AM.

Details

Summary

This is needed for clients that want to highlight virtual functions
differently.

Diff Detail

Event Timeline

ckandeler created this revision.Jul 30 2021, 2:51 AM
ckandeler requested review of this revision.Jul 30 2021, 2:51 AM
sammccall accepted this revision.Jul 30 2021, 3:14 AM

The modifier seems reasonable to me.
The most important cases are callsites (where virtual) isn't written. Can you extend a test to cover some such case?

This revision is now accepted and ready to land.Jul 30 2021, 3:14 AM
ckandeler updated this revision to Diff 363031.Jul 30 2021, 4:30 AM

Extended test case

ckandeler updated this revision to Diff 363106.Jul 30 2021, 8:33 AM

Fixed lit tests.

Can someone please merge this?

This revision was automatically updated to reflect the committed changes.