From 44d6ce5785fada71de8aec7b7087a95e453e706b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 10 Jan 2019 11:27:13 -0600 Subject: [PATCH] Documentation/NuttXCCodingStandard.html: Correct discussion of properties of indentation levels. --- Documentation/NuttXCCodingStandard.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Documentation/NuttXCCodingStandard.html b/Documentation/NuttXCCodingStandard.html index 270b036a04..0acc369f82 100644 --- a/Documentation/NuttXCCodingStandard.html +++ b/Documentation/NuttXCCodingStandard.html @@ -12,7 +12,7 @@

NuttX C Coding Standard

-

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. +

+ +

+ 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.