https://bugs.llvm.org/show_bug.cgi?id=48341
Bug ID: 48341
Summary: C99 code completion for field names in designated
initializers used with compound literals
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: unassignedclangb...@nondot.org
Reporter: michaelagan...@gmail.com
CC: llvm-bugs@lists.llvm.org
Code completion for field names in designated initializers is a recent addition
to clang. The code completion only works for regular assignments and doesn't
for compound literals.
typedef struct Foo {
int x;
} Foo;
int main (void)
{
Foo bar = { .x = 1 }; // completion works for regular assignments
bar = (Foo){ . // no code completion with compound literals
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs