dlang-community/DCD

extern(C++, "somestring"): completion not working

Closed this issue · 2 comments

Completion and go to definition don't work for members of structs like this:
--- foo.d ---

module foo;

extern (C++,"bar"):
struct Foo
{
    int ab;
    void foo()
    {
        ab = 4; // can't find the definition of ab
    }
}

$ dcd-client -c97 foo.d returns nothing.
This is only a problem with the string namespace syntax, and only when applying it with a trailing colon. extern(C++, "bar"), extern(C++, bar): and extern(C++, bar) are all fine.
Removing the : on line 3:

$ dcd-client -c96 foo.d
identifiers
ab      v

Might be fixed by dlang-community/libdparse#398 ?

confirm fixed, we need to bump the libdparse version on DCD for all the new fixes too