From: Owen Pan Date: Fri, 26 Apr 2019 07:05:47 +0000 (+0000) Subject: [clang-format] Fix documentation for FixNamespaceComments X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5afdc4aba951595da88f793488fe431faed8bf1;p=clang [clang-format] Fix documentation for FixNamespaceComments 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 --- diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index be8b7217b5..3611bdd7b0 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -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``) A vector of macros that should be interpreted as foreach loops diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index d908b86c89..fcbe0a7e93 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -1139,7 +1139,7 @@ struct FormatStyle { /// true: false: /// namespace a { vs. namespace a { /// foo(); foo(); - /// } // namespace a; } + /// } // namespace a } /// \endcode bool FixNamespaceComments;