[PATCH] D61174: [clang-format] Fix documentation for FixNamespaceComments
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 23:56:10 PDT 2019
owenpan created this revision.
owenpan added a project: clang.
Herald added a subscriber: cfe-commits.
Fixes PR40409 <https://bugs.llvm.org/show_bug.cgi?id=40409>.
Repository:
rC Clang
https://reviews.llvm.org/D61174
Files:
clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
Index: clang/include/clang/Format/Format.h
===================================================================
--- clang/include/clang/Format/Format.h
+++ clang/include/clang/Format/Format.h
@@ -1139,7 +1139,7 @@
/// true: false:
/// namespace a { vs. namespace a {
/// foo(); foo();
- /// } // namespace a; }
+ /// } // namespace a }
/// \endcode
bool FixNamespaceComments;
Index: clang/docs/ClangFormatStyleOptions.rst
===================================================================
--- clang/docs/ClangFormatStyleOptions.rst
+++ clang/docs/ClangFormatStyleOptions.rst
@@ -1346,7 +1346,7 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61174.196800.patch
Type: text/x-patch
Size: 1135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190426/76f06c03/attachment.bin>
More information about the cfe-commits
mailing list