company-lsp
company-lsp copied to clipboard
In C and C++ mode, locations of `*' and `&' are different between function declaration and completion candidates
Let' say I declare a function foo
in header file likes below
void foo(int* n);
// Note that the asterisk is on the type side
But the signature of foo
function in completion candidates is like void foo(int *n)
. Now asterisk is on the variable side. After I selected the candidate, inserted function is same as candidate signature.
I just want function declaration and inserted function to have same signature. Is there any way to solve this issue?