This commit is contained in:
Jacob Dufault 2017-03-27 19:28:45 -07:00
parent 4c601c4d37
commit 9ac960109f
6 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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(), '\\', '/');
@ -213,4 +213,4 @@ std::string Out_ShowLogMessage::method() {
if (display_type == DisplayType::Log)
return "window/logMessage";
return "window/showMessage";
}
}

View File

@ -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;

View File

@ -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,

View File

@ -94,7 +94,10 @@ def build(bld):
'third_party/doctest/',
'third_party/rapidjson/include',
CLANG_INCLUDE_DIR],
lib=['clang', 'rt', 'pthread'],
lib=[
'clang',
#'rt',
'pthread'],
libpath=[CLANG_LIB_DIR],
rpath=[CLANG_LIB_DIR],
target='app')