Details
-
Suggestion
-
Resolution: Duplicate
-
P2: Important
-
Qt Creator 2.5.0-beta
-
None
Description
Source formatting is not preserved while using alternative (not like as Qt) code style.
For example we have some member in some .h file:
Test.h
const std::string& TestFn(const std::string& str);
"Refactor" -> "Add definition in .cpp" will produce:
Test.cpp
const std::string &Process::TestFn(const std::string &str) { }
I.e. ampersands are in wrong places - not the same as in header.
It should be like that:
TestRight.cpp
const std::string& Process::TestFn(const std::string& str) { }
The same thing with asterisks.
I think place of ampersands and asterisks should be controlled via "Options" -> "C++" -> "Code Style", not hardcoded.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-6169 Add the ability to configure the way pointer and reference symbols are autocompleted
- Closed