Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.3.0
-
None
-
Linux 64.
-
8c3794f9d104a39b7f91764b7725dad8726fbde0, 138066792e61925b827d9d722669b8d96bc0a87b, 8fe25d0a4a1f61d0071ff9f10bb26204354da58e, 632eaf06a9f4727c185bad2b43449e8d1f306658
Description
Currently, when Qt Creator completes function definitions with pointers or references (based on definitions in header files), it always completes them in the format:
void Class::doSomething(unsigned int &number, Object *pObject).
Even if in the header file they're in another format (I'm assuming it rebuilds them from an AST or something)...
It would be nice if it was possible to configure this to support the following way:
void Class::doSomething(unsigned int& number, Object* pObject)
Or maybe just grab the text exactly from the header file, (but I guess this would have issues for default params, so maybe not).
With the new ability in trunk to keep definitions and declarations in sync, it's even more annoying having inconsistencies.
Attachments
Issue Links
- replaces
-
QTCREATORBUG-7196 Formatting while using "Refactor" -> "Add definition in .cpp"
- Closed
-
QTCREATORBUG-7407 C++ coding style: enable pointer and reference characters to be on left-hand side
- Closed