Asterisk and Ampersand next to the type declaration
Answered
Hi,
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?
Thanks,
Max Behensky
Please sign in to leave a comment.
Hello!
Thanks for reporting. I've created https://youtrack.jetbrains.com/issue/CPP-19807. Please comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.