diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-24 01:18:24 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-24 01:18:24 +0000 |
commit | da1e09cd229f46b9ca7e6be5549f84170868dc78 (patch) | |
tree | 19f7389e6de20ebb897e1ac6b204da08e04a8654 /docs | |
parent | 3f6959fd6d9c393945bba25473f94ee543c630b7 (diff) | |
download | busybox-w32-da1e09cd229f46b9ca7e6be5549f84170868dc78.tar.gz busybox-w32-da1e09cd229f46b9ca7e6be5549f84170868dc78.tar.bz2 busybox-w32-da1e09cd229f46b9ca7e6be5549f84170868dc78.zip |
add exception for uncuddling brackets
git-svn-id: svn://busybox.net/trunk/busybox@14252 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rw-r--r-- | docs/style-guide.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/style-guide.txt b/docs/style-guide.txt index d7d8e5ec7..71eb62914 100644 --- a/docs/style-guide.txt +++ b/docs/style-guide.txt | |||
@@ -126,6 +126,15 @@ between it and the opening control block statement. Examples: | |||
126 | 126 | ||
127 | do { | 127 | do { |
128 | 128 | ||
129 | Exceptions: | ||
130 | |||
131 | - if you have long logic statements that need to be wrapped, then uncuddling | ||
132 | the bracket to improve readability is allowed: | ||
133 | |||
134 | if (some_really_long_checks && some_other_really_long_checks \ | ||
135 | && some_more_really_long_checks) | ||
136 | { | ||
137 | do_foo_now; | ||
129 | 138 | ||
130 | Spacing around Parentheses | 139 | Spacing around Parentheses |
131 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | 140 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ |