Community
Participate
Working Groups
A comment for the last item in a C++ enum is always moved to the next line, when it should stay put. Before: enum SomeEnum { FirstValue, // first value comment SecondValue // second value comment }; After auto-formatting: enum SomeEnum { FirstValue, // first value comment SecondValue // second value comment };
Fixed in cdt_8_0 and master.
*** cdt git genie on behalf of Sergey Prigogin *** Bug 359905 - Invalid formatting of comment in enum. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=3edce39739a91463835411e629001eef02d75ebf
*** cdt git genie on behalf of Sergey Prigogin *** Bug 359905 - Invalid formatting of comment in enum. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=371bca30f374dbfc19934854c28bd28c61edc674