pl-ca / ClangAutoComplete

Sublime Text 3 plugin that offers auto-completion of C/C++ structure members or class attributes and methods.
46 stars 6 forks source link

support Designated Initializers syntax? #27

Open canfoderiskii opened 8 years ago

canfoderiskii commented 8 years ago

Any possiblity to support Designated Initializers syntax?

For example, we have a struct definition and struct variable here:

struct s  {
    int a;
    int b;
};
struct s var = {};

when i type a dot in struct variable initializer braces, autocomplete will give me the hint about struct member. Then I can finish code like this: struct s var = { .a = 1, .b = 2};

pl-ca commented 8 years ago

I will admit that I would like this feature as well, but as I'm relying 100% on clang for the completion suggestions I cannot do anything that clang does not want to.

I will take a look around the potential flags and standard library version I can pass to clang and see if it resolves this issue, but I would not hold my breath!

canfoderiskii commented 8 years ago

@pl-ca Okay, thank you