mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +00:00
Crash Hotfix.
This commit is contained in:
parent
ae26aa93db
commit
405fd56781
@ -422,7 +422,7 @@ void SetVarDetail(IndexVar* var,
|
|||||||
? param->ns.QualifiedName(semanticContainer, def.short_name)
|
? param->ns.QualifiedName(semanticContainer, def.short_name)
|
||||||
: def.short_name;
|
: def.short_name;
|
||||||
|
|
||||||
if (cursor.get_kind() == CXCursor_EnumConstantDecl) {
|
if (cursor.get_kind() == CXCursor_EnumConstantDecl && semanticContainer) {
|
||||||
CXType enum_type = clang_getEnumDeclIntegerType(semanticContainer->cursor);
|
CXType enum_type = clang_getEnumDeclIntegerType(semanticContainer->cursor);
|
||||||
std::string hover = qualified_name + " = ";
|
std::string hover = qualified_name + " = ";
|
||||||
if (enum_type.kind == CXType_Int || enum_type.kind == CXType_Long ||
|
if (enum_type.kind == CXType_Int || enum_type.kind == CXType_Long ||
|
||||||
|
Loading…
Reference in New Issue
Block a user