https://bugs.llvm.org/show_bug.cgi?id=50951
Bug ID: 50951
Summary: Completion for designated initializers of anonymous
structures
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Completion of nested initializers now works as of clangd version 13.0.0.
Unfortunately, it does not seem to support anonymous structures and unions.
struct test {
struct {
int x;
struct {
int y;
} nested;
} nested;
struct {
int z,w;
}; // anonymous struct
};
int main()
{
struct test t = {
.nested = { .x = 3, .nested = { .y = 6 }, }, // full completion
. // no completion for anonymous struct members z,w
};
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs