diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-28 20:44:47 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-28 20:44:47 +0000 |
commit | 58bd62d190fdb27d0324c4518335a3ea461f450f (patch) | |
tree | dc7d2e935bd5259876459cb6184d04a79d4eb270 /clang/include/clang-c/Index.h | |
parent | 476e2dfe19055bfc983114d8c143ac61c8042346 (diff) | |
download | bcm5719-llvm-58bd62d190fdb27d0324c4518335a3ea461f450f.tar.gz bcm5719-llvm-58bd62d190fdb27d0324c4518335a3ea461f450f.zip |
Remove _clang_initCXLookupHint() and _clang_getCursorWithHint(). Related to <rdar://problem/7310688>.
Localize the optimization to ResolveLocationInAST(). The last valid AST location is now stored with ASTUnit. There still isn't optimal, however it's an improvement (with a much cleaner API). Having the client manage an "hint" is error prone and complex.
I wanted to land the major changes before finishing up the optimizations.
llvm-svn: 85425
Diffstat (limited to 'clang/include/clang-c/Index.h')
-rw-r--r-- | clang/include/clang-c/Index.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 0d41edb2e01..5e5504161f2 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -276,21 +276,6 @@ CINDEX_LINKAGE CXFile clang_getDeclSourceFile(CXDecl); CINDEX_LINKAGE CXCursor clang_getCursor(CXTranslationUnit, const char *source_name, unsigned line, unsigned column); -/** - Usage: clang_getCursorWithHint() provides the same functionality as - clang_getCursor() except that it takes an option 'hint' argument. - The 'hint' is a temporary CXLookupHint object (whose lifetime is managed by - the caller) that should be initialized with clang_initCXLookupHint(). - - FIXME: Add a better comment once getCursorWithHint() has more functionality. - */ -typedef CXCursor CXLookupHint; -CINDEX_LINKAGE CXCursor clang_getCursorWithHint(CXTranslationUnit, const char *source_name, - unsigned line, unsigned column, - CXLookupHint *hint); - -CINDEX_LINKAGE void clang_initCXLookupHint(CXLookupHint *hint); - CINDEX_LINKAGE enum CXCursorKind clang_getCursorKind(CXCursor); CINDEX_LINKAGE unsigned clang_isDeclaration(enum CXCursorKind); CINDEX_LINKAGE unsigned clang_isReference(enum CXCursorKind); |