Skip to content
Thomas Bonfort edited this page Jun 26, 2012 · 5 revisions

This page documents the coding convention in use with 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 --indent=spaces=2 -c --lineend=linux -S [files]

Coding Conventions

  • style (k&r, gnu, linux)
  • tabs an brackets (tabs, spaces)
  • indentation
  • formatting (parens)
Clone this wiki locally