diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-22 17:22:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-22 17:22:53 +0000 |
commit | fbcb2b716bee88c754684bd189913ed9f8c09086 (patch) | |
tree | 2acd32ca2dc21efed45a8de6c8e2caa19984d0f9 /tools/c-index-test/c-index-test.c | |
parent | f17bb74e74aca9bb0525d2249041ab65c7d1fd48 (diff) |
Split clang_getCursor() into clang_getCursor() and clang_getCursorWithHint().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84873 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 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c index b458216f70..5cbc2fae53 100644 --- a/tools/c-index-test/c-index-test.c +++ b/tools/c-index-test/c-index-test.c @@ -60,9 +60,13 @@ static void TranslationUnitVisitor(CXTranslationUnit Unit, CXCursor Cursor, curColumn = 1; } else if (*startBuf != '\t') curColumn++; + + CXLookupHint hint; + clang_initCXLookupHint(&hint); + hint.decl = Cursor.decl; - Ref = clang_getCursor(Unit, clang_getCursorSource(Cursor), - curLine, curColumn, Cursor.decl); + Ref = clang_getCursorWithHint(Unit, clang_getCursorSource(Cursor), + curLine, curColumn, &hint); if (Ref.kind == CXCursor_NoDeclFound) { /* Nothing found here; that's fine. */ } else if (Ref.kind != CXCursor_FunctionDecl) { |