mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
Make CI happy.
This commit is contained in:
parent
c28426bbb4
commit
1342522f2a
@ -37,6 +37,17 @@ struct IndexVar;
|
||||
enum class SymbolKind : uint8_t { Invalid, File, Type, Func, Var };
|
||||
MAKE_REFLECT_TYPE_PROXY(SymbolKind);
|
||||
|
||||
// FIXME: Make old compiler happy.
|
||||
namespace std {
|
||||
template <>
|
||||
struct hash<::SymbolKind> {
|
||||
size_t operator()(const ::SymbolKind& instance) const {
|
||||
using type = std::underlying_type<::SymbolKind>::type;
|
||||
return std::hash<type>()(static_cast<type>(instance));
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
||||
using RawId = uint32_t;
|
||||
|
||||
template <typename T>
|
||||
|
@ -41,7 +41,7 @@ struct SymbolRef : Reference {
|
||||
SymbolRef() = default;
|
||||
SymbolRef(Range range, Id<void> id, SymbolKind kind, SymbolRole role)
|
||||
: Reference{range, id, kind, role} {}
|
||||
SymbolRef(Reference ref) : Reference{ref} {}
|
||||
SymbolRef(Reference ref) : Reference(ref) {}
|
||||
SymbolRef(SymbolIdx si)
|
||||
: Reference{Range(), Id<void>(si.idx), si.kind, SymbolRole::None} {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user