user1908746
user1908746

Reputation:

Uncrustify to always remove space between type and * or &

I want Uncrustify to generate this no matter what:

TCHAR* p;

So that all of the following (if any) are converted to the above:

TCHAR * p;
TCHAR *p;

I also want:

TCHAR* f( TCHAR* p )

And I don't want:

TCHAR * f( TCHAR * p )
TCHAR *f( TCHAR *p )

Same for &.

Thank you all.

Upvotes: 1

Views: 329

Answers (1)

PSsam
PSsam

Reputation: 649

No in time, of cause, but maybe someone will need.

sp_before_ptr_star{ Ignore, Add, Remove, Force }

As I could understand, in your case

sp_before_ptr_star=Remove

You also may need

sp_after_ptr_star=Remove

Upvotes: 1

Related Questions