From: Krasimir Georgiev Date: Tue, 14 Mar 2017 10:34:39 +0000 (+0000) Subject: Add more clang-format changes to the 5.0 release notes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4551c297a53539e41379dbafb28ef8815dcc7251;p=clang Add more clang-format changes to the 5.0 release notes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index af7aa5e91e..61a0e7ef4a 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -143,15 +143,27 @@ clang-format , public Y { }; -* Align block comment decorations +* Align block comment decorations. .. code-block:: c++ - /* line 1 - * line 2 - */ + /* line 1 /* line 1 + * line 2 becomes: * line 2 + */ */ -* The :doc:`ClangFormatStyleOptions` documentation provides detailled examples for most options. +* The :doc:`ClangFormatStyleOptions` documentation provides detailed examples for most options. + +* Namespace end comments are now added or updated automatically. + + .. code-block:: c++ + + namespace A { namespace A { + int i; int i; + int j; becomes: int j; + } } // namespace A + +* Comment reflow support added. Overly long comment lines will now be reflown with the rest of + the paragraph instead of just broken. Option **ReflowComments** added and enabled by default. libclang --------