diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-06-21 20:48:56 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-06-21 20:48:56 +0000 |
commit | 9a140845438c2fc31e7d48a6dedbc695f4c83c68 (patch) | |
tree | 3f7c3667670d3b43976cedad6ae8116a3f18de87 /tools/c-index-test/c-index-test.c | |
parent | dbc4c465a0eabd42b3cb16edc610aceb48ac7823 (diff) |
Add CXType support for querying the return type of Objective-C methods. This is done by
adding a clang_getCursorResultType() function (which complements clang_getResultType()).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 27c51a0c59..05e2d9e16b 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -470,7 +470,7 @@ static enum CXChildVisitResult PrintTypeKind(CXCursor cursor, CXCursor p, } // Print the return type if it exists. { - CXType RT = clang_getResultType(T); + CXType RT = clang_getCursorResultType(cursor); if (RT.kind != CXType_Invalid) { CXString RS = clang_getTypeKindSpelling(RT.kind); printf(" [result=%s]", clang_getCString(RS)); |