summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-10-22 17:22:53 +0000
committerTed Kremenek <kremenek@apple.com>2009-10-22 17:22:53 +0000
commita96b72a4ca723812473418563062aa5596ac72b2 (patch)
tree7f3faa7132340d550c4fa82411b18d0dd95a004c /clang/tools/c-index-test/c-index-test.c
parent8de31d0e80d707f75bd3b2693cd2e9bf14dbf91f (diff)
downloadbcm5719-llvm-a96b72a4ca723812473418563062aa5596ac72b2.tar.gz
bcm5719-llvm-a96b72a4ca723812473418563062aa5596ac72b2.zip
Split clang_getCursor() into clang_getCursor() and clang_getCursorWithHint().
llvm-svn: 84873
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index b458216f70d..5cbc2fae53f 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/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) {
OpenPOWER on IntegriCloud