Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 3.0.1
-
None
Description
Hi, I'm replicating this report because the behaviour persists with 3.0.1 release.
When using Refactor / Add Definition menu, const keyword ends always before the type name, so, a method declared in the header file as:
void myMethod(QString const s);
will become:
void MyClass::myMethod(const QString s)
{
}
in the implementation file. I think that following the coding style found in the header would result in a better experience.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-11874 Allow user to define codestyle for const placement
- Closed
- replaces
-
QTCREATORBUG-10928 Function header const order is changed when using Refactor / Add Definition
- Closed