diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst --- a/llvm/docs/CodingStandards.rst +++ b/llvm/docs/CodingStandards.rst @@ -844,7 +844,7 @@ namespace llvm { int foo(char *s) { // Mismatch between "const char *" and "char *" } - } // end namespace llvm + } // namespace llvm This error will not be caught until the build is nearly complete, when the linker fails to find a definition for any uses of the original function. If the @@ -1508,8 +1508,8 @@ }; - } // end namespace knowledge - } // end namespace llvm + } // namespace knowledge + } // namespace llvm Feel free to skip the closing comment when the namespace being closed is @@ -1550,7 +1550,7 @@ StringSort(...) bool operator<(const char *RHS) const; }; - } // end anonymous namespace + } // namespace static void runHelper() { ... @@ -1574,7 +1574,7 @@ // ... many declarations ... - } // end anonymous namespace + } // namespace When you are looking at "``runHelper``" in the middle of a large C++ file, you have no immediate way to tell if this function is local to the file. In