Community
Participate
Working Groups
Using CDT 8.0.0.201107150206 1. Open Name Style preferences, for class field, set Prefix: m Capitalization: Camel Case 2. Execute Generate Getters and Setters on a class containing int mClass; 4. void setClass(int class); is generated and contains the reserved 'class' keyword.
Fixed in cdt_8_0 and master.
This is still really minor but it looks like it can still generate some reserved keywords: class Test { int mInt; char mChar; float mFloat; double mDouble; bool mBool; int mUnsigned; long mLong; short mShort; signed int mSigned; };
Verified in 8.0.2 RC2, thanks!
*** cdt git genie on behalf of Sergey Prigogin *** Bug 352258 - Generate Getters and Setters can generate code containing reserved keywords. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ee0eb1bb4811d40bb9380f743421122d9cafa635
*** cdt git genie on behalf of Sergey Prigogin *** Bug 352258 - Generate Getters and Setters can generate code containing reserved keywords. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=8a91fc9ed2cfbc341b5b62e80d114c08b1268f9e