From 80a766bf50f08e4921e88aae073ed29e26419b61 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Wed, 2 Sep 2009 18:26:48 +0000 Subject: Start issuing callback for references (add some predicates, refactor some code). llvm-svn: 80810 --- clang/tools/c-index-test/c-index-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/tools/c-index-test') diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index d96468f8c45..20511ec8015 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -6,8 +6,8 @@ static void DeclVisitor(CXDecl Dcl, CXCursor Cursor, CXClientData Filter) { if (!Filter || (Cursor.kind == *(enum CXCursorKind *)Filter)) { - printf("%s => %s", clang_getKindSpelling(Cursor.kind), - clang_getDeclSpelling(Cursor.decl)); + printf("%s => %s", clang_getCursorKindSpelling(Cursor.kind), + clang_getCursorSpelling(Cursor)); printf(" (%s,%d:%d)\n", clang_getCursorSource(Cursor), clang_getCursorLine(Cursor), clang_getCursorColumn(Cursor)); @@ -17,8 +17,8 @@ static void TranslationUnitVisitor(CXTranslationUnit Unit, CXCursor Cursor, CXClientData Filter) { if (!Filter || (Cursor.kind == *(enum CXCursorKind *)Filter)) { - printf("%s => %s", clang_getKindSpelling(Cursor.kind), - clang_getDeclSpelling(Cursor.decl)); + printf("%s => %s", clang_getCursorKindSpelling(Cursor.kind), + clang_getCursorSpelling(Cursor)); printf(" (%s,%d:%d)\n", clang_getCursorSource(Cursor), clang_getCursorLine(Cursor), clang_getCursorColumn(Cursor)); -- cgit v1.2.3