mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 18:00:26 +00:00
wip
This commit is contained in:
parent
4c601c4d37
commit
9ac960109f
@ -4,6 +4,7 @@
|
|||||||
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/doctest/doctest
|
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/doctest/doctest
|
||||||
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/rapidjson/include
|
-IC:/Users/jacob/Desktop/superindex/indexer/third_party/rapidjson/include
|
||||||
-IC:/Program Files/LLVM/include
|
-IC:/Program Files/LLVM/include
|
||||||
|
-I/usr/local/Cellar/llvm/3.9.1/include
|
||||||
|
|
||||||
#--sysrootC:/Users/jacob/Desktop/superindex/indexer/libcxx
|
#--sysrootC:/Users/jacob/Desktop/superindex/indexer/libcxx
|
||||||
#-IC:/Users/jacob/Desktop/superindex/indexer/libcxx/include
|
#-IC:/Users/jacob/Desktop/superindex/indexer/libcxx/include
|
||||||
|
@ -26,7 +26,7 @@ namespace {
|
|||||||
const char* kIpcLanguageClientName = "language_client";
|
const char* kIpcLanguageClientName = "language_client";
|
||||||
|
|
||||||
const int kNumIndexers = 8 - 1;
|
const int kNumIndexers = 8 - 1;
|
||||||
const int kQueueSizeBytes = 1024 * 1024 * 32;
|
const int kQueueSizeBytes = 1024 * 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct IndexTranslationUnitRequest {
|
struct IndexTranslationUnitRequest {
|
||||||
|
@ -126,7 +126,7 @@ void lsDocumentUri::SetPath(const std::string& path) {
|
|||||||
raw_uri.replace(raw_uri.begin() + index, raw_uri.begin() + index + 1, "%3A");
|
raw_uri.replace(raw_uri.begin() + index, raw_uri.begin() + index + 1, "%3A");
|
||||||
}
|
}
|
||||||
|
|
||||||
raw_uri = "file:///" + raw_uri;
|
raw_uri = "file://" + raw_uri;
|
||||||
//std::cerr << "Set uri to " << raw_uri << " from " << path;
|
//std::cerr << "Set uri to " << raw_uri << " from " << path;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ std::string lsDocumentUri::GetPath() const {
|
|||||||
|
|
||||||
index = result.find("file://");
|
index = result.find("file://");
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
result.replace(result.begin() + index, result.begin() + index + 8, "");
|
result.replace(result.begin() + index, result.begin() + index + 7, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::replace(result.begin(), result.end(), '\\', '/');
|
std::replace(result.begin(), result.end(), '\\', '/');
|
||||||
|
@ -48,6 +48,7 @@ struct PlatformScopedMutexLockLinux : public PlatformScopedMutexLock {
|
|||||||
void* checked(void* result, const char* expr) {
|
void* checked(void* result, const char* expr) {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
||||||
|
std::cerr << "errno => " << strerror(errno) << std::endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
@ -56,6 +57,7 @@ void* checked(void* result, const char* expr) {
|
|||||||
int checked(int result, const char* expr) {
|
int checked(int result, const char* expr) {
|
||||||
if (result == -1) {
|
if (result == -1) {
|
||||||
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
||||||
|
std::cerr << "errno => " << strerror(errno) << std::endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -18,10 +18,10 @@ struct TypedBidiMessageQueue {
|
|||||||
|
|
||||||
TypedBidiMessageQueue(const std::string& name, size_t buffer_size)
|
TypedBidiMessageQueue(const std::string& name, size_t buffer_size)
|
||||||
: for_server(
|
: for_server(
|
||||||
Buffer::CreateSharedBuffer(name + "_for_server", buffer_size),
|
Buffer::CreateSharedBuffer(name + "_fs", buffer_size),
|
||||||
false /*buffer_has_data*/),
|
false /*buffer_has_data*/),
|
||||||
for_client(
|
for_client(
|
||||||
Buffer::CreateSharedBuffer(name + "_for_client", buffer_size),
|
Buffer::CreateSharedBuffer(name + "_fc", buffer_size),
|
||||||
true /*buffer_has_data*/) {}
|
true /*buffer_has_data*/) {}
|
||||||
|
|
||||||
void RegisterId(TId id,
|
void RegisterId(TId id,
|
||||||
|
5
wscript
5
wscript
@ -94,7 +94,10 @@ def build(bld):
|
|||||||
'third_party/doctest/',
|
'third_party/doctest/',
|
||||||
'third_party/rapidjson/include',
|
'third_party/rapidjson/include',
|
||||||
CLANG_INCLUDE_DIR],
|
CLANG_INCLUDE_DIR],
|
||||||
lib=['clang', 'rt', 'pthread'],
|
lib=[
|
||||||
|
'clang',
|
||||||
|
#'rt',
|
||||||
|
'pthread'],
|
||||||
libpath=[CLANG_LIB_DIR],
|
libpath=[CLANG_LIB_DIR],
|
||||||
rpath=[CLANG_LIB_DIR],
|
rpath=[CLANG_LIB_DIR],
|
||||||
target='app')
|
target='app')
|
||||||
|
Loading…
Reference in New Issue
Block a user