diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-13 18:47:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-12-13 18:47:45 +0000 |
commit | c10a4c8baff3164bee9b7fc293679a5a5a90eb74 (patch) | |
tree | 680180423d03f28dd647ececd4ff1a2a672afade /tools/libclang/Indexing.cpp | |
parent | e422e45a6a89d450b8eca10f671b49874e87617a (diff) |
[libclang] Indexing API: Provide the protocols list for objc categories as well.
rdar://10573361
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r-- | tools/libclang/Indexing.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index 50c37bc51f..630c55bb33 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -583,6 +583,9 @@ clang_index_getObjCProtocolRefListInfo(const CXIdxDeclInfo *DInfo) { ProtInfo = dyn_cast<ObjCProtocolDeclInfo>(DI)) return &ProtInfo->ObjCProtoRefListInfo; + if (const ObjCCategoryDeclInfo *CatInfo = dyn_cast<ObjCCategoryDeclInfo>(DI)) + return CatInfo->ObjCCatDeclInfo.protocols; + return 0; } |