diff --git a/include/indexstore/indexstore.h b/include/indexstore/indexstore.h index e5154694eb2..852f673914d 100644 --- a/include/indexstore/indexstore.h +++ b/include/indexstore/indexstore.h @@ -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, diff --git a/lib/Index/IndexDataStoreUtils.cpp b/lib/Index/IndexDataStoreUtils.cpp index 39dea609c83..c6cd43a471a 100644 --- a/lib/Index/IndexDataStoreUtils.cpp +++ b/lib/Index/IndexDataStoreUtils.cpp @@ -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; } @@ -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;