corinthia-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kelly <>
Subject Re: {}, indent and use of tabs.
Date Sun, 28 Dec 2014 13:33:02 GMT
> On 28 Dec 2014, at 8:29 pm, Peter Kelly <> wrote:
> I suggest that we stick to a common convention, and furthermore propose to use the convention
already followed by the codebase:
> 1. Indentation is four spaces. No tabs (they can cause confusion due to people having
different editing settings).
> 2. Open brace follows if, while, do, structs, and enums on the same line. Open brace
starts on a new line for functions.
> 3. Unix line endings for all files (to avoid complications with diffs)

Incidentally I think this can be enforced with a git configuration option (can’t remember
off the top of my head, but am pretty sure there’s one that deals with line ending conversion
based on the platform).

Dr Peter M. Kelly

PGP key: <>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message