Page 1 of 1

Updated coding style

Posted: 26 Aug 2017, 22:10
by Per
Our wiki is showing signs of old age and general lack of maintenance, and I am thinking we should take it down at some point, as there is not much useful content there anymore. One of the things that's still there is our old coding style guide, which I've now reformatted and updated (mostly by removing stuff) a bit with github markdown.

See https://github.com/perim/warzone2100/bl ... ngStyle.md (new version)

It is currently http://developer.wz2100.net/wiki/CodingStyle (old version)

Feedback welcome.

Re: Updated coding style

Posted: 27 Aug 2017, 21:17
by Vincent
Is there a .clang-format file to automate style formatting with clang format ? It would make a lot easier to ensure consistent formatting when submitting PR.

Re: Updated coding style

Posted: 27 Aug 2017, 22:54
by cybersphinx
The linked doxygen docs are over three years out of date (I don't remember how they were supposed to be built, but I guess it doesn't work anymore).

Re: Updated coding style

Posted: 27 Aug 2017, 23:51
by Per
Vincent wrote:Is there a .clang-format file to automate style formatting with clang format ? It would make a lot easier to ensure consistent formatting when submitting PR.
I don't know anyone who has that, I am quite happy with astyle, but if you make one, feel free to make a PR with it against the CodingStyle doc.

Re: Updated coding style

Posted: 27 Aug 2017, 23:52
by Per
cybersphinx wrote:The linked doxygen docs are over three years out of date (I don't remember how they were supposed to be built, but I guess it doesn't work anymore).
Was it ever used / useful? I guess since nobody has noticed that it is three years out of date, the answer is no...