mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +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/rapidjson/include
|
||||
-IC:/Program Files/LLVM/include
|
||||
-I/usr/local/Cellar/llvm/3.9.1/include
|
||||
|
||||
#--sysrootC:/Users/jacob/Desktop/superindex/indexer/libcxx
|
||||
#-IC:/Users/jacob/Desktop/superindex/indexer/libcxx/include
|
||||
|
@ -26,7 +26,7 @@ namespace {
|
||||
const char* kIpcLanguageClientName = "language_client";
|
||||
|
||||
const int kNumIndexers = 8 - 1;
|
||||
const int kQueueSizeBytes = 1024 * 1024 * 32;
|
||||
const int kQueueSizeBytes = 1024 * 8;
|
||||
}
|
||||
|
||||
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 = "file:///" + raw_uri;
|
||||
raw_uri = "file://" + raw_uri;
|
||||
//std::cerr << "Set uri to " << raw_uri << " from " << path;
|
||||
}
|
||||
|
||||
@ -141,7 +141,7 @@ std::string lsDocumentUri::GetPath() const {
|
||||
|
||||
index = result.find("file://");
|
||||
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(), '\\', '/');
|
||||
|
@ -48,6 +48,7 @@ struct PlatformScopedMutexLockLinux : public PlatformScopedMutexLock {
|
||||
void* checked(void* result, const char* expr) {
|
||||
if (!result) {
|
||||
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
||||
std::cerr << "errno => " << strerror(errno) << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
return result;
|
||||
@ -56,6 +57,7 @@ void* checked(void* result, const char* expr) {
|
||||
int checked(int result, const char* expr) {
|
||||
if (result == -1) {
|
||||
std::cerr << "FAIL errno=" << errno << " in |" << expr << "|" << std::endl;
|
||||
std::cerr << "errno => " << strerror(errno) << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
return result;
|
||||
|
@ -18,10 +18,10 @@ struct TypedBidiMessageQueue {
|
||||
|
||||
TypedBidiMessageQueue(const std::string& name, size_t buffer_size)
|
||||
: for_server(
|
||||
Buffer::CreateSharedBuffer(name + "_for_server", buffer_size),
|
||||
Buffer::CreateSharedBuffer(name + "_fs", buffer_size),
|
||||
false /*buffer_has_data*/),
|
||||
for_client(
|
||||
Buffer::CreateSharedBuffer(name + "_for_client", buffer_size),
|
||||
Buffer::CreateSharedBuffer(name + "_fc", buffer_size),
|
||||
true /*buffer_has_data*/) {}
|
||||
|
||||
void RegisterId(TId id,
|
||||
|
Loading…
Reference in New Issue
Block a user