clang-tools  11.0.0
Public Member Functions | List of all members
clang::clangd::ClangdServer::Callbacks Class Reference

Interface with hooks for users of ClangdServer to be notified of events. More...

#include <ClangdServer.h>

Inheritance diagram for clang::clangd::ClangdServer::Callbacks:
[legend]

Public Member Functions

virtual ~Callbacks ()=default
 
virtual void onDiagnosticsReady (PathRef File, llvm::StringRef Version, std::vector< Diag > Diagnostics)
 Called by ClangdServer when Diagnostics for File are ready. More...
 
virtual void onFileUpdated (PathRef File, const TUStatus &Status)
 Called whenever the file status is updated. More...
 
virtual void onHighlightingsReady (PathRef File, llvm::StringRef Version, std::vector< HighlightingToken > Highlightings)
 Called by ClangdServer when some Highlightings for File are ready. More...
 
virtual void onBackgroundIndexProgress (const BackgroundQueue::Stats &Stats)
 Called when background indexing tasks are enqueued/started/completed. More...
 

Detailed Description

Interface with hooks for users of ClangdServer to be notified of events.

Definition at line 66 of file ClangdServer.h.

Constructor & Destructor Documentation

◆ ~Callbacks()

virtual clang::clangd::ClangdServer::Callbacks::~Callbacks ( )
virtualdefault

Member Function Documentation

◆ onBackgroundIndexProgress()

virtual void clang::clangd::ClangdServer::Callbacks::onBackgroundIndexProgress ( const BackgroundQueue::Stats Stats)
inlinevirtual

Called when background indexing tasks are enqueued/started/completed.

Not called concurrently.

Definition at line 87 of file ClangdServer.h.

◆ onDiagnosticsReady()

virtual void clang::clangd::ClangdServer::Callbacks::onDiagnosticsReady ( PathRef  File,
llvm::StringRef  Version,
std::vector< Diag Diagnostics 
)
inlinevirtual

Called by ClangdServer when Diagnostics for File are ready.

May be called concurrently for separate files, not for a single file.

Definition at line 72 of file ClangdServer.h.

◆ onFileUpdated()

virtual void clang::clangd::ClangdServer::Callbacks::onFileUpdated ( PathRef  File,
const TUStatus Status 
)
inlinevirtual

Called whenever the file status is updated.

May be called concurrently for separate files, not for a single file.

Definition at line 76 of file ClangdServer.h.

◆ onHighlightingsReady()

virtual void clang::clangd::ClangdServer::Callbacks::onHighlightingsReady ( PathRef  File,
llvm::StringRef  Version,
std::vector< HighlightingToken Highlightings 
)
inlinevirtual

Called by ClangdServer when some Highlightings for File are ready.

May be called concurrently for separate files, not for a single file.

Definition at line 81 of file ClangdServer.h.


The documentation for this class was generated from the following file: