Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
[indexstore] Add INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE
Browse files Browse the repository at this point in the history
rdar://problem/51747249
  • Loading branch information
jkorous-apple committed Oct 4, 2019
1 parent bf37de6 commit dafa911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/indexstore/indexstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ typedef enum {
INDEXSTORE_SYMBOL_ROLE_ADDRESSOF = 1 << 7,
INDEXSTORE_SYMBOL_ROLE_IMPLICIT = 1 << 8,
INDEXSTORE_SYMBOL_ROLE_UNDEFINITION = 1 << 19,
INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE = 1 << 20,

// Relation roles.
INDEXSTORE_SYMBOL_ROLE_REL_CHILDOF = 1 << 9,
Expand Down
4 changes: 3 additions & 1 deletion lib/Index/IndexDataStoreUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ SymbolRoleSet index::getSymbolRoles(uint64_t Roles) {
SymbolRoles |= (SymbolRoleSet)SymbolRole::RelationIBTypeOf;
if (Roles & INDEXSTORE_SYMBOL_ROLE_REL_SPECIALIZATIONOF)
SymbolRoles |= (SymbolRoleSet)SymbolRole::RelationSpecializationOf;
if (Roles & INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE)
SymbolRoles |= (SymbolRoleSet)SymbolRole::NameReference;

return SymbolRoles;
}
Expand Down Expand Up @@ -512,7 +514,7 @@ uint64_t index::getIndexStoreRoles(SymbolRoleSet Roles) {
storeRoles |= INDEXSTORE_SYMBOL_ROLE_REL_SPECIALIZATIONOF;
break;
case SymbolRole::NameReference:
storeRoles |= INDEXSTORE_SYMBOL_ROLE_REFERENCE;
storeRoles |= INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE;
break;
}
});
Expand Down

0 comments on commit dafa911

Please sign in to comment.