mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Fix build
This commit is contained in:
parent
a8aa94d4ba
commit
0e5e2a6ca5
@ -480,6 +480,8 @@ Command line options:
|
|||||||
--language-server
|
--language-server
|
||||||
Run as a language server. This implements the language server
|
Run as a language server. This implements the language server
|
||||||
spec over STDIN and STDOUT.
|
spec over STDIN and STDOUT.
|
||||||
|
--init <initializationOptions>
|
||||||
|
Override user provided initialization options.
|
||||||
--test-unit Run unit tests.
|
--test-unit Run unit tests.
|
||||||
--test-index <opt_filter_path>
|
--test-index <opt_filter_path>
|
||||||
Run index tests. opt_filter_path can be used to specify which
|
Run index tests. opt_filter_path can be used to specify which
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
// TODO: See if we can use clang_indexLoc_getFileLocation to get a type ref on
|
// TODO: See if we can use clang_indexLoc_getFileLocation to get a type ref on
|
||||||
// |Foobar| in DISALLOW_COPY(Foobar)
|
// |Foobar| in DISALLOW_COPY(Foobar)
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <fstream>
|
|
||||||
#include <iostream>
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include "query_utils.h"
|
#include "query_utils.h"
|
||||||
#include "queue_manager.h"
|
#include "queue_manager.h"
|
||||||
|
|
||||||
|
#include <loguru.hpp>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct Ipc_CqueryCallTreeInitial
|
struct Ipc_CqueryCallTreeInitial
|
||||||
: public IpcMessage<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: REMOVE |seen_locations| once we fix the querydb update bugs
|
||||||
// TODO: basically, querydb gets duplicate references inserted into it.
|
// TODO: basically, querydb gets duplicate references inserted into it.
|
||||||
if (!seen_locations.insert(caller.loc).second) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#include <loguru.hpp>
|
#include <loguru.hpp>
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
// TODO Cleanup global variables
|
// TODO Cleanup global variables
|
||||||
extern std::string g_init_options;
|
extern std::string g_init_options;
|
||||||
extern int g_enable_comments;
|
extern int g_enable_comments;
|
||||||
|
Loading…
Reference in New Issue
Block a user