From abea4ab2e162b1f9444cd772b95aedd75ff60ff4 Mon Sep 17 00:00:00 2001 From: KareemErgawy Date: Wed, 24 Oct 2018 15:49:02 +0200 Subject: [PATCH] [BUGFIX] Don't use DiagnosticsEngine without initialization. --- src/command_line.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command_line.cc b/src/command_line.cc index 66842e675..3c431d41b 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -209,6 +209,7 @@ void RunQueryDbThread(const std::string& bin_name) { WorkingFiles working_files; FileConsumerSharedState file_consumer_shared; DiagnosticsEngine diag_engine; + diag_engine.Init(); ClangCompleteManager clang_complete( &project, &working_files,