[Vv] vv and clitk3 "coding standard"
Simon Rit
simon.rit at creatis.insa-lyon.fr
Tue Apr 27 09:36:59 CEST 2010
After working a bit on clitk3, I have the feeling that there is
absolutely no consistency between (and even within) files. I don't
really think we should adopt a coding standard because we should keep
our own coding styles but it would be nice if we could just set a
minimal set of rules for the sake of readability. I suggest these ones
first:
- indentation: 2 spaces
- tabs are replaced by spaces
- opening and closing characters of a block are aligned vertically, e.g.
if (true)
{
}
- types are suffixed with Type (as in ITK if I'm not mistaking)
- preprocessor defines and macros in upper case
For the rest (e.g. naming of functions and variables), we can try to
follow the rules of our third-party libraries (itk and vtk). What do
you think?
Simon
More information about the vv
mailing list