[Tile-serving] [osm2pgsql] Set coding style (#370)

Sarah Hoffmann notifications at github.com
Sat Jul 4 09:52:35 UTC 2015


I would suggest the following as minimum standard:

- no tabs, standard indentation 4 spaces
- opening brackets on the same line (possible exception for class and function definitions)
- use underscores in names, no camel case
- class/struct names end in _t
- no space between function name and bracket
- space between for/if/while and bracket
- spaces around operators

This seems to reflect the general trend in the code. I'm not particularly insisting on any of those rules (with exception of the "no tabs" rule maybe). I just would like to see more consistency.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/370#issuecomment-118494623
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150704/da2f76a5/attachment.html>


More information about the Tile-serving mailing list