Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [Code formatting] ptr/ref character's position.(The position of characters '&' and '*'.)
icon5.gif  [Code formatting] ptr/ref character's position. [message #1476785] Mon, 17 November 2014 10:51
soman namos is currently offline soman namosFriend
Messages: 11
Registered: December 2012
Junior Member
When I use 'Generate methods', Eclipse always puts '*' / '&' to type. Does any way exist to control this behavior?
For example, we have such method in a class body:
class A
{
public:
  void func(const SomeClass &someObj);
};

Eclipse generates follow:
void A::func(const SomeClass& someObj);

It would be good to have the next options for code formatter:
SomeClass& obj; // 1
SomeClass &obj; // 2
SomeClass & obj; // 3

Or something more advanced:
SomeClass& obj; // for return types.
SomeClass &obj; // for parameters.

I'm going to create a feature request if there are no ways to control this.
Eclipse CDT Luna: 4.4.0, downloaded from eclipse org
Xubuntu 14.04.1
Previous Topic:Need Help! Can't create a simple window with WinMain
Next Topic:CDT standalone debugger: Avoid cleanup of executables directory / Setting working directory
Goto Forum:
  


Current Time: Sat Apr 20 00:04:42 GMT 2024

Powered by FUDForum. Page generated in 0.03091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top