[index] For extensions, relate the symbol reference that gets extended and base references with the extension symbol.

They were getting related with the original extended symbol, which was incorrect.
This commit is contained in:
Argyrios Kyrtzidis
2017-02-19 18:19:39 -08:00
parent dba747642e
commit a13289835e
4 changed files with 50 additions and 26 deletions

View File

@@ -45,7 +45,7 @@ inline SymbolPropertySet &operator|=(SymbolPropertySet &SKSet, SymbolProperty SK
}
struct IndexRelation {
const ValueDecl *decl;
const Decl *decl;
SymbolInfo symInfo;
SymbolRoleSet roles = SymbolRoleSet(0);
@@ -55,7 +55,7 @@ struct IndexRelation {
StringRef USR; // USR may be safely compared by pointer.
StringRef group;
IndexRelation(SymbolRoleSet Roles, const ValueDecl *Sym, SymbolInfo SymInfo, StringRef Name, StringRef USR)
IndexRelation(SymbolRoleSet Roles, const Decl *Sym, SymbolInfo SymInfo, StringRef Name, StringRef USR)
: decl(Sym), symInfo(SymInfo), roles(Roles), name(Name), USR(USR) {}
IndexRelation() = default;