Asterisk and Ampersand next to the type declaration



My company uses the format for pointer and reference declarations where the * or & character is next to the type:

void foo(const char* bar);

void blech(int& baz);

I can't seem to get CLion to do the right thing.  There are checkboxes in the C++ coding style "Before "*" in declarations" and "After "*" in declarations".  However, if I clear the first one and set the second one, and type foo(, the auto completion generates:

void foo(const char * bar){}

The same thing happens for references.  Is there something I'm missing?



Max Behensky


1 comment
Comment actions Permalink


Thanks for reporting. I've created Please comment or upvote the issue in order to get updates. See if you are not familiar with YouTrack.


Please sign in to leave a comment.