diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-20 23:57:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-20 23:57:43 +0000 |
commit | b2cd48756119f4d8d2a865b4b3e0e8efd02e26a0 (patch) | |
tree | 09dc767cd071aee640191c0f29c980093882e67c /tools/c-index-test/c-index-test.c | |
parent | d0f251b4cd60c9746bbd5ebbed5058cd7769d8c3 (diff) |
Stash a CXXUnit pointer into each cursor. This allows us to simplify
the interface to clang_visitChildren() by eliminating the
CXTranslationUnit pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r-- | tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index 185c059737..473773e080 100644 --- a/tools/c-index-test/c-index-test.c +++ b/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; } |