diff --git a/src/message_handler.cc b/src/message_handler.cc index 69a2a3ca..88c22c31 100644 --- a/src/message_handler.cc +++ b/src/message_handler.cc @@ -32,7 +32,7 @@ MAKE_HASHABLE(ccls::SymbolIdx, t.usr, t.kind); namespace ccls { MAKE_REFLECT_STRUCT(CodeActionParam::Context, diagnostics); MAKE_REFLECT_STRUCT(CodeActionParam, textDocument, range, context); -MAKE_REFLECT_STRUCT(EmptyParam, placeholder); +void Reflect(Reader &, EmptyParam &) {} MAKE_REFLECT_STRUCT(TextDocumentParam, textDocument); MAKE_REFLECT_STRUCT(DidOpenTextDocumentParam, textDocument); MAKE_REFLECT_STRUCT(TextDocumentContentChangeEvent, range, rangeLength, text); diff --git a/src/message_handler.hh b/src/message_handler.hh index e5e07844..8eca9375 100644 --- a/src/message_handler.hh +++ b/src/message_handler.hh @@ -43,9 +43,7 @@ struct CodeActionParam { std::vector diagnostics; } context; }; -struct EmptyParam { - bool placeholder; -}; +struct EmptyParam {}; struct DidOpenTextDocumentParam { TextDocumentItem textDocument; };