This is an archive of the discontinued LLVM Phabricator instance.

[clangd] simplify ClangdLSPServer by private-inheriting callback interfaces. NFC
ClosedPublic

Authored by sammccall on Sep 29 2017, 10:21 AM.

Details

Summary

There doesn't seem to be any real separation between the current three objects.
Feel free to reject this if you find the current style valuable, though.

(Mostly I'm just looking around for cleanups to help me understand the code).

Diff Detail

Repository
rL LLVM

Event Timeline

sammccall created this revision.Sep 29 2017, 10:21 AM
ilya-biryukov accepted this revision.Sep 29 2017, 2:52 PM

LGTM.

PS I actually remember arguing to keep those classes separate in the original review :-)

This revision is now accepted and ready to land.Sep 29 2017, 2:52 PM
ilya-biryukov added inline comments.Sep 29 2017, 3:09 PM
clangd/ClangdLSPServer.h
41 ↗(On Diff #117178)

NIT: Missing full stop at the end of the comment.

46 ↗(On Diff #117178)

NIT: Missing full stop at the end of the comment.

sammccall updated this revision to Diff 117256.Sep 30 2017, 3:06 AM
  • Address review comments
This revision was automatically updated to reflect the committed changes.