diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-08-26 01:42:22 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-08-26 01:42:22 +0000 |
commit | 95f33555a6d51b6537a9ed3968c3d1c2e4991b51 (patch) | |
tree | 3c81eccf2bf7be2c9a886f9915235871d8727d14 /tools/c-index-test | |
parent | 2dc70ad391cb75ea90a2fb5d14a7f1d271534da3 (diff) |
Add libclang API hook "clang_getIBOutletCollectionType" to query the collection type for iboutletcollection attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 330fa545f9..3f702904a3 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -195,6 +195,14 @@ static void PrintCursor(CXCursor Cursor) { printf(" (unavailable)"); break; } + + if (Cursor.kind == CXCursor_IBOutletCollectionAttr) { + CXType T = + clang_getCanonicalType(clang_getIBOutletCollectionType(Cursor)); + CXString S = clang_getTypeKindSpelling(T.kind); + printf(" [IBOutletCollection=%s]", clang_getCString(S)); + clang_disposeString(S); + } } } |