Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 28, 2020. It is now read-only.
/swift-clangPublic archive

Commitb73ce4d

Browse files
Merge pull request#362 from jkorous-apple/apple/stable/20190619
Apple/stable/20190619
2 parentsea94718 +dafa911 commitb73ce4d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎include/indexstore/indexstore.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ typedef enum {
297297
INDEXSTORE_SYMBOL_ROLE_ADDRESSOF=1 <<7,
298298
INDEXSTORE_SYMBOL_ROLE_IMPLICIT=1 <<8,
299299
INDEXSTORE_SYMBOL_ROLE_UNDEFINITION=1 <<19,
300+
INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE=1 <<20,
300301

301302
// Relation roles.
302303
INDEXSTORE_SYMBOL_ROLE_REL_CHILDOF=1 <<9,

‎lib/Index/IndexDataStoreUtils.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ SymbolRoleSet index::getSymbolRoles(uint64_t Roles) {
275275
SymbolRoles |= (SymbolRoleSet)SymbolRole::RelationIBTypeOf;
276276
if (Roles & INDEXSTORE_SYMBOL_ROLE_REL_SPECIALIZATIONOF)
277277
SymbolRoles |= (SymbolRoleSet)SymbolRole::RelationSpecializationOf;
278+
if (Roles & INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE)
279+
SymbolRoles |= (SymbolRoleSet)SymbolRole::NameReference;
278280

279281
return SymbolRoles;
280282
}
@@ -511,6 +513,9 @@ uint64_t index::getIndexStoreRoles(SymbolRoleSet Roles) {
511513
case SymbolRole::RelationSpecializationOf:
512514
storeRoles |= INDEXSTORE_SYMBOL_ROLE_REL_SPECIALIZATIONOF;
513515
break;
516+
case SymbolRole::NameReference:
517+
storeRoles |= INDEXSTORE_SYMBOL_ROLE_NAMEREFERENCE;
518+
break;
514519
}
515520
});
516521
return storeRoles;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp