mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +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: {
|
||||
QueryType& type = db->types[symbol.idx];
|
||||
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);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user