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

Commit

Permalink
Merge pull request #362 from jkorous-apple/apple/stable/20190619
Browse files Browse the repository at this point in the history
Apple/stable/20190619
  • Loading branch information
jkorous-apple authored Oct 7, 2019
2 parents ea94718 + dafa911 commit b73ce4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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
5 changes: 5 additions & 0 deletions 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 @@ -511,6 +513,9 @@ uint64_t index::getIndexStoreRoles(SymbolRoleSet Roles) {
case SymbolRole::RelationSpecializationOf:
storeRoles |= INDEXSTORE_SYMBOL_ROLE_REL_SPECIALIZATIONOF;
break;
case SymbolRole::NameReference:
storeRoles |= INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE;
break;
}
});
return storeRoles;
Expand Down

0 comments on commit b73ce4d

Please sign in to comment.