[cfe-commits] [PATCH] New libclang API to expose container type for code completion

Connor Wakamo cwakamo at apple.com
Fri Jul 15 16:41:59 PDT 2011


Hello,

I have another patch that I would like to submit for review.  This patch adds two new API functions to libclang to return the container type (for member accesses, Objective-C message sends, etc.) for the current code completion context.  Both functions take in a CXCodeCompleteResults to get the information that they return.

The first function, clang_codeCompleteGetContainerTypeKind, returns a CXCursorKind for the container type.  Additionally, it returns via a parameter whether or not Clang sees the container type as incomplete.

The second function, clang_codeCompleteGetContainerTypeUSR, returns a CXString with the USR for the container type.

Please let me know what changes I should make to my patch.

Thanks,
Connor Wakamo
cwakamo at apple.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110715/491c552b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_codeCompleteGetContainerType.patch
Type: application/octet-stream
Size: 10454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110715/491c552b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110715/491c552b/attachment-0001.html>


More information about the cfe-commits mailing list