forked from MapServer/MapServer
-
Notifications
You must be signed in to change notification settings - Fork 2
CodingStyle
Thomas Bonfort edited this page Apr 6, 2012
·
5 revisions
This page documents possible coding conventions for MapServer.
== Artistic Style (astyle) ==
[http://astyle.sourceforge.net/ Artistic Style (astyle)] is source code formatting tool, and allows for flexible definitions (spaces, padding, indents, one liners, etc.) to automatically format source code for a given coding convention.
Here is a sample invocation:
{{{
$ astyle --style=kr --unpad=paren --indent=spaces=2 mslibxml2.c
}}}
== Coding Conventions ==
- style (k&r, gnu, linux)
- tabs an brackets (tabs, spaces)
- indentation
- formatting (parens)