summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-09-02 18:26:48 +0000
committerSteve Naroff <snaroff@apple.com>2009-09-02 18:26:48 +0000
commit80a766bf50f08e4921e88aae073ed29e26419b61 (patch)
tree3d3338c89afd19623726d86818b12787c15ffb35 /clang/tools/c-index-test
parentb7cb99bf50d2e4887f4bf0ca47f671be6b6e9181 (diff)
downloadbcm5719-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.c8
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));
OpenPOWER on IntegriCloud