[llvm-bugs] [Bug 48341] New: C99 code completion for field names in designated initializers used with compound literals
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 30 14:53:08 PST 2020
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: unassignedclangbugs at nondot.org
Reporter: michaelaganier at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201130/af9c2c6c/attachment-0001.html>
More information about the llvm-bugs
mailing list