mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
Fix clang build
This commit is contained in:
parent
f498f0ccb1
commit
808e0f5277
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
#if false
|
||||||
constexpr int kBacktraceBufferSize = 300;
|
constexpr int kBacktraceBufferSize = 300;
|
||||||
|
|
||||||
#if false
|
|
||||||
void EmitBacktrace() {
|
void EmitBacktrace() {
|
||||||
void* buffer[kBacktraceBufferSize];
|
void* buffer[kBacktraceBufferSize];
|
||||||
int nptrs = backtrace(buffer, kBacktraceBufferSize);
|
int nptrs = backtrace(buffer, kBacktraceBufferSize);
|
||||||
@ -78,6 +78,7 @@ int GetCompletionPriority(const CXCompletionString& str, CXCursorKind result_kin
|
|||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
bool IsCallKind(CXCursorKind kind) {
|
bool IsCallKind(CXCursorKind kind) {
|
||||||
switch (kind) {
|
switch (kind) {
|
||||||
case CXCursor_ObjCInstanceMethodDecl:
|
case CXCursor_ObjCInstanceMethodDecl:
|
||||||
@ -92,6 +93,7 @@ bool IsCallKind(CXCursorKind kind) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
lsCompletionItemKind GetCompletionKind(CXCursorKind cursor_kind) {
|
lsCompletionItemKind GetCompletionKind(CXCursorKind cursor_kind) {
|
||||||
switch (cursor_kind) {
|
switch (cursor_kind) {
|
||||||
|
Loading…
Reference in New Issue
Block a user