Fix indexer crash when indexing MSVC STL.

This commit is contained in:
Jacob Dufault 2017-09-12 22:51:13 -07:00
parent 9336143333
commit d9143f065d
2 changed files with 5 additions and 4 deletions

View File

@ -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