From 55add6264cac53dc5b870e099b63edd9800f651c Mon Sep 17 00:00:00 2001 From: Filip Volejnik Date: Sun, 5 Sep 2010 11:52:26 +0000 Subject: [PATCH] Formating: astyle options file, dev. comment on formatting --- doc/DEVELOPERS | 2 ++ scripts/astyle.conf | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 scripts/astyle.conf diff --git a/doc/DEVELOPERS b/doc/DEVELOPERS index aaca641..e67366c 100644 --- a/doc/DEVELOPERS +++ b/doc/DEVELOPERS @@ -21,6 +21,8 @@ There will be a whole coding style document later on, but for now, some simple r * Think about the way the code looks - will it be readable by others? * Test before commiting * Think twice, code once :) +* Formatting, simply put - every curly brace indents, curly braces do not break (on the same line) + - if not sure, use astyle with scripts/astyle.conf as options file (astyle --options=SOME_PATH/scripts/astyle.conf file.cpp) Be sure to update ChangeLog file sometimes. On linux, it can be updated using svn2cl script. diff --git a/scripts/astyle.conf b/scripts/astyle.conf new file mode 100644 index 0000000..34e1652 --- /dev/null +++ b/scripts/astyle.conf @@ -0,0 +1,11 @@ +-C +-S +-G +-N +-a +--mode=c +-t8 +-T +-U +-A2 +-E