clang-format: Using different rules for spacing * and &


I can't find how to do this: void myfunc(int *a, int& b); My coding standard asks for pointers sticking to the variable but references sticking to the type. Am I missing something here or this feature does not exist? Is it possible to add it if it doesn't?


There has been a thread about this before. This option is not implemented in clang-format and I am still quite strongly against it. More Background:

Thanks, I agree that more and more options is not the way to go. I tried to use uncrustify and I had to go over 488 options to configure it. Unfortunately I found some annoying bugs, but even reporting the bugs is a pain since it's really hard to blame a particular option/rule. I'll try to push this through even if it breaks this part of our coding standard.