diff options
author | Steve Naroff <snaroff@apple.com> | 2009-09-02 18:26:48 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-09-02 18:26:48 +0000 |
commit | 80a766bf50f08e4921e88aae073ed29e26419b61 (patch) | |
tree | 3d3338c89afd19623726d86818b12787c15ffb35 /clang/tools/c-index-test | |
parent | b7cb99bf50d2e4887f4bf0ca47f671be6b6e9181 (diff) | |
download | bcm5719-llvm-80a766bf50f08e4921e88aae073ed29e26419b61.tar.gz bcm5719-llvm-80a766bf50f08e4921e88aae073ed29e26419b61.zip |
Start issuing callback for references (add some predicates, refactor some code).
llvm-svn: 80810
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |