CodingStandard

From GnuCash
Revision as of 01:41, 23 November 2011 by Jralls (talk | contribs) (New page, work in progress, time for supper.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Gnucash is fairly relaxed about coding style, but we will periodically run a reformatter called astyle over the code to clean it up. To reduce the need for this (it messes up VCS history, particularly "blame"), please format your code as follows.

In general, follow the GNU format except use four spaces instead of two for the indents. To summarize,