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 --------