This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Cleanup the duplicated getTokenRange.
ClosedPublic

Authored by hokein on Jun 24 2019, 7:04 AM.

Details

Summary

Also lift it to SourceCode.h, so that it can be used in other places
(semantic code highlighting).

Event Timeline

hokein created this revision.Jun 24 2019, 7:04 AM
kadircet accepted this revision.Jun 24 2019, 8:45 AM
kadircet added inline comments.
clang-tools-extra/clangd/XRefs.cpp
926

nit: move declaration into if body?

This revision is now accepted and ready to land.Jun 24 2019, 8:45 AM
hokein updated this revision to Diff 206380.Jun 25 2019, 1:00 AM
hokein marked an inline comment as done.

Address review comments.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2019, 1:06 AM