mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +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);
|
||||
type->def.definition_spelling = ResolveSpelling(decl->cursor);
|
||||
type->def.definition_extent = ResolveExtent(decl->cursor);
|
||||
if (decl->isDefinition) {
|
||||
type->def.definition_spelling = ResolveSpelling(decl->cursor);
|
||||
type->def.definition_extent = ResolveExtent(decl->cursor);
|
||||
}
|
||||
UniqueAdd(type->uses, decl_loc_spelling);
|
||||
|
||||
// type_def->alias_of
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user