Set SymbolKind::File

This commit is contained in:
Fangrui Song 2019-10-14 00:50:22 -07:00
parent 6a488bfbf4
commit eeda2882f3

View File

@ -784,6 +784,7 @@ public:
SourceRange sr = origD->getSourceRange();
entity->def.spell = {use,
fromTokenRangeDefaulted(sm, lang, sr, fid, loc)};
entity->def.parent_kind = SymbolKind::File;
getKind(cast<Decl>(sem_dc), entity->def.parent_kind);
} else if (is_decl) {
SourceRange sr = origD->getSourceRange();