If I ask Visual Studio 2017 to generate an implementation for me using this button:
The result will be:
void MyClass::testMethod(int * someParameter) const
{
}
Notice that the * is not next to type. In our project, we put & and * next to types. This is what Bjarne Stroustrup prefers as well:
A "typical C++ programmer" writes
int* p;and explains it "pis a pointer to anint" emphasizing type. Indeed the type ofpisint*. I clearly prefer that emphasis and see it as important for using the more advanced parts of C++ well.
Is there a setting for formatting the generated methods so that they are consistent with this formatting style?
