ccls icon indicating copy to clipboard operation
ccls copied to clipboard

Formatting of references in code completion snippets

Open matthewbrookes opened this issue 4 years ago • 1 comments

Hi, I was wondering if there could be a way to configure where the & is placed in code completion snippets involving references? Obviously people have different preferences so a config option would be great.

Observed behavior

Code completion formats references like this void foo(int &bar);

Expected behavior

I would like to have it formatted like void foo(int& bar), note the position of the &.

matthewbrookes avatar Apr 25 '21 18:04 matthewbrookes

I am not sure your issue is related to ccls. You might want to have a look at clang-format :)

Maverobot avatar May 11 '21 19:05 Maverobot