From dc7f6af44d6d480afa9836d54f82fc714e74f02a Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 28 Jan 2016 13:40:14 +0100 Subject: [PATCH] I prefer to cut lines at 120 chars, nowadays So, share my eclipse config file. --- README.coding | 6 +- tools/internal/eclipse-formating.xml | 172 +++++++++++++++++++++++++++ tools/internal/indent | 2 +- 3 files changed, 176 insertions(+), 4 deletions(-) create mode 100644 tools/internal/eclipse-formating.xml 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. -- 2.20.1