mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Fix build on macOS #20
This commit is contained in:
parent
42f744ba29
commit
c7c6a8ed39
11
src/query.h
11
src/query.h
@ -51,9 +51,18 @@ struct QueryLocation {
|
|||||||
MAKE_REFLECT_STRUCT(QueryLocation, path, range);
|
MAKE_REFLECT_STRUCT(QueryLocation, path, range);
|
||||||
MAKE_HASHABLE(QueryLocation, t.path, t.range);
|
MAKE_HASHABLE(QueryLocation, t.path, t.range);
|
||||||
|
|
||||||
enum class SymbolKind { Invalid, File, Type, Func, Var };
|
enum class SymbolKind : int { Invalid, File, Type, Func, Var };
|
||||||
MAKE_REFLECT_TYPE_PROXY(SymbolKind, int);
|
MAKE_REFLECT_TYPE_PROXY(SymbolKind, int);
|
||||||
|
|
||||||
|
namespace std {
|
||||||
|
template <> struct hash<::SymbolKind> {
|
||||||
|
size_t operator()(const ::SymbolKind &instance) const {
|
||||||
|
return std::hash<int>()(static_cast<int>(instance));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
struct SymbolIdx {
|
struct SymbolIdx {
|
||||||
SymbolKind kind;
|
SymbolKind kind;
|
||||||
size_t idx;
|
size_t idx;
|
||||||
|
Loading…
Reference in New Issue
Block a user