mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-21 07:59:27 +00:00
Fix SymbolRole serialization and make it hashable
This commit is contained in:
parent
715fece4dd
commit
48a6f836ca
@ -78,6 +78,7 @@ enum class SymbolRole : uint8_t {
|
||||
CalledBy = 1 << 6,
|
||||
};
|
||||
MAKE_REFLECT_TYPE_PROXY(SymbolRole);
|
||||
MAKE_ENUM_HASHABLE(SymbolRole);
|
||||
|
||||
inline uint8_t operator&(SymbolRole lhs, SymbolRole rhs) {
|
||||
return uint8_t(lhs) & uint8_t(rhs);
|
||||
|
@ -2319,7 +2319,8 @@ void Reflect(Reader& visitor, IndexFuncRef& value) {
|
||||
if (str_value[0] == '~') {
|
||||
value.role = SymbolRole::Implicit;
|
||||
++str_value;
|
||||
}
|
||||
} else
|
||||
value.role = SymbolRole::None;
|
||||
RawId id = atol(str_value);
|
||||
const char* loc_string = strchr(str_value, '@') + 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user