[cfe-dev] clang_codeCompleteAt returning invalid completion results
Douglas Gregor
dgregor at apple.com
Wed Feb 20 10:20:45 PST 2013
On Feb 20, 2013, at 1:55 AM, jaytee <aloha_arts at yahoo.com> wrote:
> Hello,
>
> I've noticed that clang_codeCompleteAt (using clang 2.9 - unable to upgrade
> clang version in my application) is returning invalid completion results,
> although the text chunks of those results appear to be valid. The following
> is a simple example:
> typedef union _myUnionType {
> union {
> int a;
> };
> } myUnionType;
> void func() {
> myUnionType var;
> var.
> }
> 'var.' is returning a single completion result having a
> CXCursor_NotImplemented cursor kind.
> Does anybody know if there's any risk in using CXCursor_NotImplemented
> completion results?
There is no risk at all. The cursor associated with a completion result is simply to help with the UI for code completion if, e.g., one wants to use a different icon for variables vs. functions.
- Doug
More information about the cfe-dev
mailing list