mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 00:55:08 +00:00
12 lines
418 B
C++
12 lines
418 B
C++
|
#include "message_handler.h"
|
||
|
#include "platform.h"
|
||
|
|
||
|
struct CqueryIndexFileHandler : BaseMessageHandler<Ipc_CqueryIndexFile> {
|
||
|
void Run(Ipc_CqueryIndexFile* request) override {
|
||
|
queue->index_request.Enqueue(Index_Request(
|
||
|
NormalizePath(request->params.path), request->params.args,
|
||
|
request->params.is_interactive, request->params.contents));
|
||
|
}
|
||
|
};
|
||
|
REGISTER_MESSAGE_HANDLER(CqueryIndexFileHandler);
|