]> granicus.if.org Git - clang/commitdiff
[clang-format] Fix documentation for FixNamespaceComments
authorOwen Pan <owenpiano@gmail.com>
Fri, 26 Apr 2019 07:05:47 +0000 (07:05 +0000)
committerOwen Pan <owenpiano@gmail.com>
Fri, 26 Apr 2019 07:05:47 +0000 (07:05 +0000)
Fixes PR40409

Differential Revision: https://reviews.llvm.org/D61174

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

docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h

index be8b7217b56b271e973832a2b40aea7ab92fac6c..3611bdd7b00d07faa5d6465eb9052afe77b182fa 100644 (file)
@@ -1346,7 +1346,7 @@ the configuration (without a prefix: ``Auto``).
      true:                                  false:
      namespace a {                  vs.     namespace a {
      foo();                                 foo();
-     } // namespace a;                      }
+     } // namespace a                       }
 
 **ForEachMacros** (``std::vector<std::string>``)
   A vector of macros that should be interpreted as foreach loops
index d908b86c89814cd53cffc68b616c82e0d6f94198..fcbe0a7e9322abd6d59144e153e74c3f2325e8dc 100644 (file)
@@ -1139,7 +1139,7 @@ struct FormatStyle {
   ///    true:                                  false:
   ///    namespace a {                  vs.     namespace a {
   ///    foo();                                 foo();
-  ///    } // namespace a;                      }
+  ///    } // namespace a                       }
   /// \endcode
   bool FixNamespaceComments;