From e09ed35a8d7ada3305a608b2a54c99996e35eee7 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sat, 6 Jan 2018 13:40:33 -0800 Subject: [PATCH] Forward declare Project --- src/message_handler.cc | 1 + src/message_handler.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/message_handler.cc b/src/message_handler.cc index 72ee844b..2c669c0a 100644 --- a/src/message_handler.cc +++ b/src/message_handler.cc @@ -1,6 +1,7 @@ #include "message_handler.h" #include "lex_utils.h" +#include "project.h" #include "query_utils.h" #include "queue_manager.h" #include "semantic_highlight_symbol_cache.h" diff --git a/src/message_handler.h b/src/message_handler.h index 14ecc745..a93b1bf5 100644 --- a/src/message_handler.h +++ b/src/message_handler.h @@ -3,7 +3,6 @@ #include "ipc.h" #include "language_server_api.h" #include "query.h" -#include "project.h" #include @@ -18,6 +17,7 @@ struct ImportManager; struct ImportPipelineStatus; struct IncludeComplete; struct MultiQueueWaiter; +struct Project; struct QueryDatabase; struct SemanticHighlightSymbolCache; struct TimestampManager; @@ -75,7 +75,7 @@ struct BaseMessageHandler : MessageHandler { }; bool FindFileOrFail(QueryDatabase* db, - const Project *project, + const Project* project, optional id, const std::string& absolute_path, QueryFile** out_query_file,