mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 13:48:04 +00:00
Fix indexer crash when indexing MSVC STL.
This commit is contained in:
parent
9336143333
commit
d9143f065d
@ -1235,9 +1235,10 @@ void indexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
|
|||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
assert(decl->isDefinition);
|
if (decl->isDefinition) {
|
||||||
type->def.definition_spelling = ResolveSpelling(decl->cursor);
|
type->def.definition_spelling = ResolveSpelling(decl->cursor);
|
||||||
type->def.definition_extent = ResolveExtent(decl->cursor);
|
type->def.definition_extent = ResolveExtent(decl->cursor);
|
||||||
|
}
|
||||||
UniqueAdd(type->uses, decl_loc_spelling);
|
UniqueAdd(type->uses, decl_loc_spelling);
|
||||||
|
|
||||||
// type_def->alias_of
|
// type_def->alias_of
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user