From 808e0f5277288f4b8e766d6024f8b682b270f84a Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Thu, 29 Jun 2017 10:30:22 -0700 Subject: [PATCH] Fix clang build --- src/clang_complete.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clang_complete.cc b/src/clang_complete.cc index 6f5762f4..852cc4f2 100644 --- a/src/clang_complete.cc +++ b/src/clang_complete.cc @@ -18,9 +18,9 @@ namespace { +#if false constexpr int kBacktraceBufferSize = 300; -#if false void EmitBacktrace() { void* buffer[kBacktraceBufferSize]; int nptrs = backtrace(buffer, kBacktraceBufferSize); @@ -78,6 +78,7 @@ int GetCompletionPriority(const CXCompletionString& str, CXCursorKind result_kin return priority; } +/* bool IsCallKind(CXCursorKind kind) { switch (kind) { case CXCursor_ObjCInstanceMethodDecl: @@ -92,6 +93,7 @@ bool IsCallKind(CXCursorKind kind) { return false; } } +*/ lsCompletionItemKind GetCompletionKind(CXCursorKind cursor_kind) { switch (cursor_kind) {