diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-01 00:31:07 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-01 00:31:07 +0000 |
commit | a6c56bb849e99c1539eae5960f5b1a2404b971d4 (patch) | |
tree | 38e963354709603614b8c3b984b36a5912edcfdd /clang/tools/c-index-test | |
parent | 7d69911a1f0c21653bea7859cd853ab4dad18538 (diff) | |
download | bcm5719-llvm-a6c56bb849e99c1539eae5960f5b1a2404b971d4.tar.gz bcm5719-llvm-a6c56bb849e99c1539eae5960f5b1a2404b971d4.zip |
Add support for class and protocol references.
llvm-svn: 83186
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index aa93a7ed4f2..1139f626b62 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -12,12 +12,10 @@ static void PrintCursor(CXCursor Cursor) { else { printf("%s=%s", clang_getCursorKindSpelling(Cursor.kind), clang_getCursorSpelling(Cursor)); - if (Cursor.stmt) { - CXDecl DeclReferenced = clang_getCursorDecl(Cursor); - if (DeclReferenced) - printf(":%d:%d", clang_getDeclLine(DeclReferenced), - clang_getDeclColumn(DeclReferenced)); - } + CXDecl DeclReferenced = clang_getCursorDecl(Cursor); + if (DeclReferenced) + printf(":%d:%d", clang_getDeclLine(DeclReferenced), + clang_getDeclColumn(DeclReferenced)); } } |