MCPcopy Create free account
hub / github.com/MaskRay/ccls / bind

Method bind

src/message_handler.cc:138–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void MessageHandler::bind(const char *method, void (MessageHandler::*handler)(JsonReader &)) {
139 method2notification[method] = [this, handler](JsonReader &reader) { (this->*handler)(reader); };
140}
141
142template <typename Param> void MessageHandler::bind(const char *method, void (MessageHandler::*handler)(Param &)) {
143 method2notification[method] = [this, handler](JsonReader &reader) {

Callers

nothing calls this directly

Calls 1

reflectFunction · 0.70

Tested by

no test coverage detected