diff --git a/Documentation/NuttXCCodingStandard.html b/Documentation/NuttXCCodingStandard.html index 270b036a049..0acc369f824 100644 --- a/Documentation/NuttXCCodingStandard.html +++ b/Documentation/NuttXCCodingStandard.html @@ -12,7 +12,7 @@
Last Updated: August 28, 2018
+Last Updated: January 10, 2019
@@ -994,8 +994,18 @@ int animals(int animal)Alignment of Braces. Note that since braces must be on a separate line (see above), this indentation by two spaces has an interesting property: - All C statements (and case selectors) like on lines that are odd multiples of 2 spaces: 2, 6, 10, ... (2*n + 1). - A braces lie on a separate line indented by an even multple of 2 spaces: 4, 8, 12, ... 2*n. +
++ All C statements (and case selectors) lie on lines that are multiples of 4 spaces (beginning with an indentation of two): 2, 6, 10, ... (4*n + 2) (for indentation level n = 0, 1, ...) +
+ braces lie on a separate line also indented by multiple of 4 spaces: 4, 8, 12, ... 4*n (for indentation level n = 1, 2, ...) +
+ Thus, all code at the indentation level should align on the same column. + Similarly, opening and closing braces at the same indentation level should also align on the same (but different) column.