Indentation


Subject: Indentation
From: Jesper Skov (jskov@redhat.com)
Date: Sat Nov 11 2000 - 15:59:05 CST


I've had a quick look at some of the sources over the last few days,
and must admit to being somewhat disappointed with the state of the
sources wrt coding conventions. I saw Mike commented on it as well.

Is there anything like indent(1) for C++? If so, may I suggest that a
suitable config file is generated, checked in, and used to fix the
files as people hack on them?

Possibly also check in instructions (or script bits) for how to obtain
proper indentation rules in various editors.

At first reading of this, you may think I'm nuts :) But there's a good
reason for me asking: if I'm to make sense out of any code, I need it
to be properly indented - I don't really care much about which
standard is used, as long as it's consistent.

While I could just run indent(1) over the sources I want to look at, I
don't have so much spare time to hack on stuff that I want to spend
any of it on hand merging changes from indented sources to the
pristine randomly indented CVS sources.

Make sense? Anybody have suggestions/comments?

Ta,
Jesper



This archive was generated by hypermail 2b25 : Sat Nov 11 2000 - 15:59:42 CST