[docs] A slight tweak to the intro for the golden rule in the coding
authorChandler Carruth <chandlerc@gmail.com>
Fri, 28 Feb 2014 12:24:18 +0000 (12:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 28 Feb 2014 12:24:18 +0000 (12:24 +0000)
standards.

It claims the document intentionally doesn't give fixed standards for
brace placement or spacing, and then the document goes on to do
precisely that in several places. Instead, try to highlight that even
these rules are simply *guidance* which may be trumped by some other
circumstance or the local conventions of code.

I'm not trying to change the thrust of this part of the document, and if
folks think this does so, I'm happy to re-wordsmith it. I just don't
want it to be so self-contradicting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202495 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CodingStandards.rst

index 32e3f70920fe636275f4c80510580fa3af17e357..4d25c1ddfcda3e076aebff9fc218ff97eb3d8c72 100644 (file)
@@ -14,9 +14,9 @@ absolute requirements to be followed in all instances, coding standards are
 particularly important for large-scale code bases that follow a library-based
 design (like LLVM).
 
-This document intentionally does not prescribe fixed standards for religious
-issues such as brace placement and space usage.  For issues like this, follow
-the golden rule:
+While this document may provide guidance for some mechanical formatting issues,
+whitespace, or other "microscopic details", these are not fixed standards.
+Always follow the golden rule:
 
 .. _Golden Rule: