Fix build

This commit is contained in:
Fangrui Song 2018-01-10 00:21:55 -08:00
parent a8aa94d4ba
commit 0e5e2a6ca5
5 changed files with 8 additions and 3 deletions

View File

@ -480,6 +480,8 @@ Command line options:
--language-server
Run as a language server. This implements the language server
spec over STDIN and STDOUT.
--init <initializationOptions>
Override user provided initialization options.
--test-unit Run unit tests.
--test-index <opt_filter_path>
Run index tests. opt_filter_path can be used to specify which

View File

@ -12,6 +12,7 @@
#include <algorithm>
#include <chrono>
#include <climits>
#include <iostream>
// TODO: See if we can use clang_indexLoc_getFileLocation to get a type ref on
// |Foobar| in DISALLOW_COPY(Foobar)

View File

@ -19,8 +19,6 @@
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <vector>

View File

@ -2,6 +2,8 @@
#include "query_utils.h"
#include "queue_manager.h"
#include <loguru.hpp>
namespace {
struct Ipc_CqueryCallTreeInitial
: public IpcMessage<Ipc_CqueryCallTreeInitial> {
@ -100,7 +102,7 @@ std::vector<Out_CqueryCallTree::CallEntry> BuildExpandCallTree(
// TODO: REMOVE |seen_locations| once we fix the querydb update bugs
// TODO: basically, querydb gets duplicate references inserted into it.
if (!seen_locations.insert(caller.loc).second) {
std::cerr << "!!!! FIXME DUPLICATE REFERENCE IN QUERYDB" << std::endl;
LOG_S(ERROR) << "!!!! FIXME DUPLICATE REFERENCE IN QUERYDB" << std::endl;
return;
}

View File

@ -10,6 +10,8 @@
#include <loguru.hpp>
#include <iostream>
// TODO Cleanup global variables
extern std::string g_init_options;
extern int g_enable_comments;