summaryrefslogtreecommitdiff
path: root/docs/style-guide.txt
diff options
context:
space:
mode:
authorMike Frysinger2006-02-24 01:18:24 +0000
committerMike Frysinger2006-02-24 01:18:24 +0000
commit0612b5fa68a1c41656031c7318b0347bdbdeeb89 (patch)
tree19f7389e6de20ebb897e1ac6b204da08e04a8654 /docs/style-guide.txt
parent6b6edf959dfeb8cacf101b6cc7db25e8d809f633 (diff)
downloadbusybox-0612b5fa68a1c41656031c7318b0347bdbdeeb89.zip
busybox-0612b5fa68a1c41656031c7318b0347bdbdeeb89.tar.gz
add exception for uncuddling brackets
Diffstat (limited to 'docs/style-guide.txt')
-rw-r--r--docs/style-guide.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/style-guide.txt b/docs/style-guide.txt
index d7d8e5e..71eb629 100644
--- a/docs/style-guide.txt
+++ b/docs/style-guide.txt
@@ -126,6 +126,15 @@ between it and the opening control block statement. Examples:
do {
+Exceptions:
+
+ - if you have long logic statements that need to be wrapped, then uncuddling
+ the bracket to improve readability is allowed:
+
+ if (some_really_long_checks && some_other_really_long_checks \
+ && some_more_really_long_checks)
+ {
+ do_foo_now;
Spacing around Parentheses
~~~~~~~~~~~~~~~~~~~~~~~~~~