aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/CodingStyle
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/CodingStyle')
-rw-r--r--Documentation/CodingStyle7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index 7f1730f1a1ae..6caa14615578 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -77,12 +77,15 @@ Get a decent editor and don't leave whitespace at the end of lines.
77Coding style is all about readability and maintainability using commonly 77Coding style is all about readability and maintainability using commonly
78available tools. 78available tools.
79 79
80The limit on the length of lines is 80 columns and this is a hard limit. 80The limit on the length of lines is 80 columns and this is a strongly
81preferred limit.
81 82
82Statements longer than 80 columns will be broken into sensible chunks. 83Statements longer than 80 columns will be broken into sensible chunks.
83Descendants are always substantially shorter than the parent and are placed 84Descendants are always substantially shorter than the parent and are placed
84substantially to the right. The same applies to function headers with a long 85substantially to the right. The same applies to function headers with a long
85argument list. Long strings are as well broken into shorter strings. 86argument list. Long strings are as well broken into shorter strings. The
87only exception to this is where exceeding 80 columns significantly increases
88readability and does not hide information.
86 89
87void fun(int a, int b, int c) 90void fun(int a, int b, int c)
88{ 91{