Code formating for range-for

Post here any ideas/problems/suggestions you have regarding CodeLite's CodeFormatter (AStyle) plugin
AndiB
CodeLite Curious
Posts: 3
Joined: Mon Oct 08, 2012 11:13 am
Genuine User: Yes
IDE Question: c++
Contact:

Code formating for range-for

Post by AndiB »

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
NilC
CodeLite Enthusiast
Posts: 34
Joined: Fri Sep 14, 2012 1:01 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Code formating for range-for

Post by NilC »

That was fixed in rev. 5819.
My build of rev. 5904 for Windows is here:
https://dl.dropbox.com/u/58962113/Codelite/Codelite.7z
AndiB
CodeLite Curious
Posts: 3
Joined: Mon Oct 08, 2012 11:13 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: Code formating for range-for

Post by AndiB »

Thanks for the hint!
Post Reply