[PATCH] D63821: [clangd] Added C++ API code for semantic highlighting
Nikolai Kosjar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 27 01:46:05 PDT 2019
nik added inline comments.
================
Comment at: clang-tools-extra/clangd/ClangdServer.h:60
+ // Called by ClangdServer when some \p Highlightings for \p File are ready.
+ virtual void onHighlightingsReady(PathRef File,
+ std::vector<HighlightingToken> Highlightings) = 0;
----------------
jvikstrom wrote:
> hokein wrote:
> > we may add this interface to the existing `DiagnosticsConsumer`.
> Probably want to rename `DiagnosticsConsumer` as well, can't come up with a good name though. Any suggestions?
One could summarize diagnostics and highlightings as annotations, so maybe FileAnnotationsConsumer or DocumentAnnotationsConsumer? Not sure how onFileUpdated() fits into this...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63821/new/
https://reviews.llvm.org/D63821
More information about the cfe-commits
mailing list