Fix build on macOS #20

This commit is contained in:
Christian Pehle 2017-11-17 15:26:25 +01:00 committed by Jacob Dufault
parent 42f744ba29
commit c7c6a8ed39

View File

@ -51,9 +51,18 @@ struct QueryLocation {
MAKE_REFLECT_STRUCT(QueryLocation, path, 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);
namespace std {
template <> struct hash<::SymbolKind> {
size_t operator()(const ::SymbolKind &instance) const {
return std::hash<int>()(static_cast<int>(instance));
}
};
}
struct SymbolIdx {
SymbolKind kind;
size_t idx;