ClangAutoComplete icon indicating copy to clipboard operation
ClangAutoComplete copied to clipboard

support Designated Initializers syntax?

Open canfoderiskii opened this issue 8 years ago • 2 comments

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};

canfoderiskii avatar May 03 '16 12:05 canfoderiskii

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!

pl-ca avatar May 03 '16 13:05 pl-ca

@pl-ca Okay, thank you

canfoderiskii avatar May 03 '16 14:05 canfoderiskii