From: Martin Quinson Date: Thu, 28 Jan 2016 12:40:14 +0000 (+0100) Subject: I prefer to cut lines at 120 chars, nowadays X-Git-Tag: v3_13~1046 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dc7f6af44d6d480afa9836d54f82fc714e74f02a I prefer to cut lines at 120 chars, nowadays So, share my eclipse config file. --- diff --git a/README.coding b/README.coding index ec8290882a..a43aeed403 100644 --- a/README.coding +++ b/README.coding @@ -46,11 +46,11 @@ The tree is not split on projects, but on file finality: Most files use the Kernighan & Ritchie coding style with 2 spaces of indentation. The indent program can help you to stick to it: -indent -kr -l80 -nut -i2 -lps -npcs -br -brs -ce -cdw -bbo -npsl +indent -kr -l120 -nut -i2 -lps -npcs -br -brs -ce -cdw -bbo -npsl -The script ./tools/indent runs indent with the appropriate options. +The script ./tools/internal/indent runs indent with the appropriate options. -FIXME: this list of arguments is still to be discussed, maybe +If you use Eclipse, please import the settings in ./tools/internal/eclipse-formating.xml ** ** Type naming standard diff --git a/tools/internal/eclipse-formating.xml b/tools/internal/eclipse-formating.xml new file mode 100644 index 0000000000..8ac6bc9453 --- /dev/null +++ b/tools/internal/eclipse-formating.xml @@ -0,0 +1,172 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/internal/indent b/tools/internal/indent index f9f914a61e..56c39060bd 100755 --- a/tools/internal/indent +++ b/tools/internal/indent @@ -9,7 +9,7 @@ declare -a OPTIONS OPTIONS=( -kr # Use Kernighan & Ritchie coding style. - -l80 # Set maximum line length for non-comment lines to 80. + -l120 # Set maximum line length for non-comment lines to 120. -nut # Use spaces instead of tabs. -i2 # Set indentation level to 2 spaces. -lps # Leave space between ‘#’ and preprocessor directive.