Code formating for range-for

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin

Code formating for range-for

Postby AndiB » Mon Oct 08, 2012 11:21 am

Hello, I was wondering what has to be done to allow for proper code formating for "range-for" loops of C++11. Whenever I auto-format my code to ANSI-style, in lines containing the range-for statement all spaces before the actual for-statement a deleted. Is there an easy rule to be added for these statements in order to ensure proper formatting?
By the way, I am using svn rev. 5772.

Thanks for any help.
AndiB
AndiB
CodeLite Curious
 
Posts: 3
Joined: Mon Oct 08, 2012 11:13 am

Re: Code formating for range-for

Postby NilC » Mon Oct 08, 2012 4:51 pm

That was fixed in rev. 5819.
My build of rev. 5904 for Windows is here:
https://dl.dropbox.com/u/58962113/Codelite/Codelite.7z
NilC
CodeLite Enthusiast
 
Posts: 34
Joined: Fri Sep 14, 2012 1:01 pm

Re: Code formating for range-for

Postby AndiB » Tue Oct 09, 2012 11:49 am

Thanks for the hint!
AndiB
CodeLite Curious
 
Posts: 3
Joined: Mon Oct 08, 2012 11:13 am


Return to CodeFormatter

Who is online

Users browsing this forum: No registered users and 2 guests

cron