[PATCH] D70355: [clang-format] [NFC] add recent changes to release notes
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 16 04:12:24 PST 2019
MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: klimek, mitchell-stellar, sylvestre.ledru, sammccall.
MyDeveloperDay added projects: clang-format, clang.
MyDeveloperDay added a subscriber: Eugene.Zelenko.
MyDeveloperDay added a comment.
@Eugene.Zelenko I've noticed you are always giving excellent review feedback in clang-tidy especially around the documentation, I'd appreciate your eyes on finding the right level of documentation here.
clang-tidy keeps nice release notes of what is added, have clang-format didn't do the same.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70355
Files:
clang/docs/ReleaseNotes.rst
Index: clang/docs/ReleaseNotes.rst
===================================================================
--- clang/docs/ReleaseNotes.rst
+++ clang/docs/ReleaseNotes.rst
@@ -319,6 +319,28 @@
``ClassImpl.hpp`` would not have the main include file put on top
before any other include.
+- Options and ``DeriveLineEnding`` and ``UseCRLF`` added to allow
+ clang-format to control the newlines, ``DeriveLineEnding`` is by default
+ ``true`` and reflects is the existing mechanism, which based is on majority
+ rule. The new options allows this to be turned off and UseCRLF to control
+ the decision as to which sort of line ending to use.
+
+- Option ``SpaceBeforeSquareBrackets`` added to allow for a space before
+ array declarations.
+
+ .. code-block:: c++
+
+ int a [5]; vs int a[5];
+
+
+- Clang-format now supports JavaScript null operators.
+
+ .. code-block:: c++
+
+ const x = foo ?? default;
+ const z = foo?.bar?.baz;
+
+
libclang
--------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70355.229687.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191116/8484f65f/attachment-0001.bin>
More information about the cfe-commits
mailing list