Issue 123146
Summary No code completion for member access operator when array-to-pointer decay is performed
Labels clangd, clang:frontend
Assignees
Reporter ahatanak
    $ cat test.c
```
struct my_foo {
  int a;
  int b;
};

struct my_foo arr[1];

void func() {
  arr->
}
```

$ clang -cc1 -code-completion-at=test.c:9:8  test.c 

If I declare `arr` as `struct my_foo *arr;`, code completion succeeds.

$ clang -cc1 -code-completion-at=test.c:9:8  test.c 
COMPLETION: a : [#int#]a
COMPLETION: b : [#int#]b
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to