From de0f50886f4d122a1142c77fa5f36ad1533c96d7 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 11 Jan 2017 21:01:07 +0000 Subject: [index] Add 'IBTypeOf' relation for ObjC methods marked with IBAction and properties with IBOutletCollection. llvm-svn: 291703 --- clang/lib/Index/IndexSymbol.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Index/IndexSymbol.cpp') diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp index d7df0976b07..5192122ae1e 100644 --- a/clang/lib/Index/IndexSymbol.cpp +++ b/clang/lib/Index/IndexSymbol.cpp @@ -290,6 +290,7 @@ void index::applyForEachSymbolRole(SymbolRoleSet Roles, APPLY_FOR_ROLE(RelationExtendedBy); APPLY_FOR_ROLE(RelationAccessorOf); APPLY_FOR_ROLE(RelationContainedBy); + APPLY_FOR_ROLE(RelationIBTypeOf); #undef APPLY_FOR_ROLE } @@ -319,6 +320,7 @@ void index::printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS) { case SymbolRole::RelationExtendedBy: OS << "RelExt"; break; case SymbolRole::RelationAccessorOf: OS << "RelAcc"; break; case SymbolRole::RelationContainedBy: OS << "RelCont"; break; + case SymbolRole::RelationIBTypeOf: OS << "RelIBType"; break; } }); } -- cgit v1.2.3