mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 17:41:58 +00:00
Fix #372
This commit is contained in:
parent
0eb7d415d7
commit
5bd466ab17
@ -188,7 +188,7 @@ std::vector<QueryLocation> GetUsesOfSymbol(QueryDatabase* db,
|
|||||||
case SymbolKind::Type: {
|
case SymbolKind::Type: {
|
||||||
QueryType& type = db->types[symbol.idx];
|
QueryType& type = db->types[symbol.idx];
|
||||||
std::vector<QueryLocation> ret = type.uses;
|
std::vector<QueryLocation> ret = type.uses;
|
||||||
if (include_decl && type.def)
|
if (include_decl && type.def && type.def->definition_spelling)
|
||||||
ret.push_back(*type.def->definition_spelling);
|
ret.push_back(*type.def->definition_spelling);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user