r359280 - [clang-format] Fix documentation for FixNamespaceComments
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 26 00:05:47 PDT 2019
Author: owenpan
Date: Fri Apr 26 00:05:47 2019
New Revision: 359280
URL: http://llvm.org/viewvc/llvm-project?rev=359280&view=rev
Log:
[clang-format] Fix documentation for FixNamespaceComments
Fixes PR40409
Differential Revision: https://reviews.llvm.org/D61174
Modified:
cfe/trunk/docs/ClangFormatStyleOptions.rst
cfe/trunk/include/clang/Format/Format.h
Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ClangFormatStyleOptions.rst?rev=359280&r1=359279&r2=359280&view=diff
==============================================================================
--- cfe/trunk/docs/ClangFormatStyleOptions.rst (original)
+++ cfe/trunk/docs/ClangFormatStyleOptions.rst Fri Apr 26 00:05:47 2019
@@ -1346,7 +1346,7 @@ the configuration (without a prefix: ``A
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
Modified: cfe/trunk/include/clang/Format/Format.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Format/Format.h?rev=359280&r1=359279&r2=359280&view=diff
==============================================================================
--- cfe/trunk/include/clang/Format/Format.h (original)
+++ cfe/trunk/include/clang/Format/Format.h Fri Apr 26 00:05:47 2019
@@ -1139,7 +1139,7 @@ struct FormatStyle {
/// true: false:
/// namespace a { vs. namespace a {
/// foo(); foo();
- /// } // namespace a; }
+ /// } // namespace a }
/// \endcode
bool FixNamespaceComments;
More information about the cfe-commits
mailing list