Issue |
132632
|
Summary |
clangd produces weird snippets
|
Labels |
new issue
|
Assignees |
|
Reporter |
jlahoda
|
Consider code like this:
```
void test2(int i1, int i2) {}
void test() {
test2//cursor here
}
```
Invoke the code completion at the cursor place. It will produce an entry for `test2(int i1, int i2)` - good. But, this completion item has a text edit which inserts this as the text:
```
test2(${1:int i1}, ${2:int i2})
```
This seems to use the Snippet support (which, by itself, may be OK), but when the item is inserted, it will lead to an editor line like:
```
test2(int i1, int i2)
```
which seems quite incorrect.
Should the snippet be like (i.e. just names, without the types):
```
test2(${1:i1}, ${2:i2})
```
?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs