Issue |
140194
|
Summary |
clangd autocomplete suggestion(s) for functions with explicit object parameter (deducing this) can be improved
|
Labels |
new issue
|
Assignees |
|
Reporter |
arun5309
|
clangd's autocomplete suggestion(s) for functions with explicit object parameter (i.e deducing this) do not behave as expected. Here, is a simple example.
Current behavior:
```cpp
struct S {
void f(this auto& self) {}
};
int main() {
S s;
s. // Autocomplete suggestion (cursor after '.'): 'f(auto& self) method' which expands this line to 's.f(auto& self)' with cursor before ')'.
}
```
Expected behavior:
```cpp
struct S {
void f(this auto& self) {}
};
int main() {
S s;
s. // Autocomplete suggestion (cursor after '.'): 'f() method' which expands this line to 's.g()' with cursor after ')'.
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs