[cfe-commits] [PATCH] New libclang API, clang_getCursorCompletionString

Connor Wakamo cwakamo at apple.com
Mon Aug 1 13:10:48 PDT 2011


I am submitting for review a patch that adds a new libclang API to return a CXCompletionString for an arbitrary cursor:

CXCompletionString clang_getCursorCompletionString(CXCursor)

The completion strings are not context-sensitive but do provide the same information (such as result types, placeholders, etc.) as those returned by clang_codeCompleteAt.  I've added some output to c-index-test for the -cursor-at option, and have added some tests for this new output to test/Index/get-cursor.cpp and in a new file, test/Index/get-cursor-objc.m.

Please let me know what changes I need to make.

Thanks,
Connor Wakamo
cwakamo at apple.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110801/74f9e92b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_getCursorCompletionString.patch
Type: application/octet-stream
Size: 9958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110801/74f9e92b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110801/74f9e92b/attachment-0001.html>


More information about the cfe-commits mailing list