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 | fed36b1aa13452a7e416a0faa5a36d681fa08059 (patch) | |
tree | 7360703cf08d60c7e91201b53d7706477cd352ca /clang/tools/c-index-test/c-index-test.c | |
parent | 3f4a77e08283a2d1c6149dcf37286b1bca10f39c (diff) | |
download | bcm5719-llvm-fed36b1aa13452a7e416a0faa5a36d681fa08059.tar.gz bcm5719-llvm-fed36b1aa13452a7e416a0faa5a36d681fa08059.zip |
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
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |