From fed36b1aa13452a7e416a0faa5a36d681fa08059 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 20 Jan 2010 23:57:43 +0000 Subject: Stash a CXXUnit pointer into each cursor. This allows us to simplify the interface to clang_visitChildren() by eliminating the CXTranslationUnit pointer. llvm-svn: 94051 --- clang/tools/c-index-test/c-index-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 185c0597379..473773e0801 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -230,7 +230,7 @@ static int perform_test_load(CXIndex Idx, CXTranslationUnit TU, Data.TU = TU; Data.Filter = ck; - clang_visitChildren(TU, clang_getTranslationUnitCursor(TU), Visitor, &Data); + clang_visitChildren(clang_getTranslationUnitCursor(TU), Visitor, &Data); clang_disposeTranslationUnit(TU); return 0; } -- cgit v1.2.3