For those who don’t know where to find it or what it is: http://cocos2d-x.org/projects/cocos2d-x/wiki/Cocos2d_c**_coding_style
This Style Guide seems based on Google’s C** one: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
As our’s is still work in progress I’d like to add some comments
Variable-Names 99% of the variables of the framework are not OK if we need to follow this. I’d take something on mid terms, like
const char* m_exampleVariableNameinstead of
const char *m_pszExampleVariableName. (What does sz means? String Zero?)
Class-Format The proposed spacing is going to be a PITA in a lot of IDE’s and editors. Even the web’s code syntax highlight isn’t handling well, check Google’s one to see how it looks like (it looks awful to me ). I’d put zero spaces on
private:and 4 spaces on the rest, like Xcode, Visual Studio and Eclipse do.