Skip to content

Commit 0c5ce1d

Browse files
committed
Fix formatting in release notes
Code needs double backticks, while single backticks produce italics. Lists need to be fully indented and have blank lines around them. Links are written "`text <url>`_". We use links instead of `:manpage:`, because the latter is meant more for man pages cross-referencing each other. Reviewed By: aaron.ballman, thieta Differential Revision: https://reviews.llvm.org/D132791
1 parent 05d07e4 commit 0c5ce1d

File tree

2 files changed

+34
-28
lines changed

2 files changed

+34
-28
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Bug Fixes
127127
This fixes Issue `Issue 53488 <https://github.com/llvm/llvm-project/issues/53488>`_.
128128
- According to `CWG 1394 <https://wg21.link/cwg1394>`_ and
129129
`C++20 [dcl.fct.def.general]p2 <https://timsong-cpp.github.io/cppwp/n4868/dcl.fct.def#general-2.sentence-3>`_,
130-
Clang should not diagnose incomplete types in function definitions if the function body is "= delete;".
130+
Clang should not diagnose incomplete types in function definitions if the function body is ``= delete;``.
131131
This fixes Issue `Issue 52802 <https://github.com/llvm/llvm-project/issues/52802>`_.
132132
- Unknown type attributes with a ``[[]]`` spelling are no longer diagnosed twice.
133133
This fixes Issue `Issue 54817 <https://github.com/llvm/llvm-project/issues/54817>`_.
@@ -163,7 +163,7 @@ Bug Fixes
163163
promise_type body for coroutines if there is any allocation function
164164
declaration in the scope of promise_type. Additionally, to implement CWG2585,
165165
a coroutine will no longer generate a call to a global allocation function
166-
with the signature (std::size_t, p0, ..., pn).
166+
with the signature ``(std::size_t, p0, ..., pn)``.
167167
This fixes Issue `Issue 54881 <https://github.com/llvm/llvm-project/issues/54881>`_.
168168
- Implement `CWG 2394 <https://wg21.link/cwg2394>`_: Const class members
169169
may be initialized with a defaulted default constructor under the same
@@ -202,7 +202,7 @@ Bug Fixes
202202
considered to have one positive bit in order to represent the underlying
203203
value. This effects whether we consider the store of the value one to be well
204204
defined.
205-
- An operator introduced to the scope via a `using` statement now correctly references this
205+
- An operator introduced to the scope via a ``using`` statement now correctly references this
206206
statement in clangd (hover over the symbol, jump to definition) as well as in the AST dump.
207207
This also fixes `issue 55095 <https://github.com/llvm/llvm-project/issues/#55095>`_ as a
208208
side-effect.
@@ -305,7 +305,7 @@ Improvements to Clang's diagnostics
305305
- When using class templates without arguments, clang now tells developers
306306
that template arguments are missing in certain contexts.
307307
This fixes `Issue 55962 <https://github.com/llvm/llvm-project/issues/55962>`_.
308-
- Printable Unicode characters within `static_assert` messages are no longer
308+
- Printable Unicode characters within ``static_assert`` messages are no longer
309309
escaped.
310310
- The ``-Winfinite-recursion`` diagnostic no longer warns about
311311
unevaluated operands of a ``typeid`` expression, as they are now
@@ -330,10 +330,10 @@ Improvements to Clang's diagnostics
330330
Non-comprehensive list of changes in this release
331331
-------------------------------------------------
332332

333-
- Improve __builtin_dump_struct:
333+
- Improve ``__builtin_dump_struct``:
334334

335335
- Support bitfields in struct and union.
336-
- Improve the dump format, dump both bitwidth(if its a bitfield) and field
336+
- Improve the dump format, dump both bitwidth (if its a bitfield) and field
337337
value.
338338
- Remove anonymous tag locations and flatten anonymous struct members.
339339
- Beautify dump format, add indent for struct members.
@@ -346,8 +346,9 @@ Non-comprehensive list of changes in this release
346346
custom formatting for non-aggregate types.
347347

348348
- Previously disabled sanitizer options now enabled by default:
349-
- ASAN_OPTIONS=detect_stack_use_after_return=1 (only on Linux).
350-
- MSAN_OPTIONS=poison_in_dtor=1.
349+
350+
- ``ASAN_OPTIONS=detect_stack_use_after_return=1`` (only on Linux).
351+
- ``MSAN_OPTIONS=poison_in_dtor=1``.
351352

352353
- Some type-trait builtins, such as ``__has_trivial_assign``, have been documented
353354
as deprecated for a while because their semantics don't mix well with post-C++11 type-traits.
@@ -451,9 +452,9 @@ Attribute Changes in Clang
451452
``__attribute__((function_return("keep")))`` was added. This is intended to
452453
be used by the Linux kernel to mitigate RETBLEED.
453454

454-
- Ignore the `__preferred_name__` attribute when writing for C++20 module interfaces.
455+
- Ignore the ``__preferred_name__`` attribute when writing for C++20 module interfaces.
455456
This is a short-term workaround intentionally since clang doesn't take care of the
456-
serialization and deserialization of `__preferred_name__`. See
457+
serialization and deserialization of ``__preferred_name__``. See
457458
https://github.com/llvm/llvm-project/issues/56490 for example.
458459

459460
Windows Support
@@ -515,8 +516,8 @@ C++ Language Changes in Clang
515516
unsigned character literals. This fixes `Issue 54886 <https://github.com/llvm/llvm-project/issues/54886>`_.
516517
- Stopped allowing constraints on non-template functions to be compliant with
517518
dcl.decl.general p4.
518-
- Improved ``copy elision`` optimization. It's possible to apply ``NRVO`` for an object if at the moment when
519-
any return statement of this object is executed, the ``return slot`` won't be occupied by another object.
519+
- Improved `copy elision` optimization. It's possible to apply `NRVO` for an object if at the moment when
520+
any return statement of this object is executed, the `return slot` won't be occupied by another object.
520521

521522

522523
C++20 Feature Support
@@ -565,8 +566,8 @@ C++2b Feature Support
565566
CUDA/HIP Language Changes in Clang
566567
----------------------------------
567568

568-
- Added `__noinline__` as a keyword to avoid diagnostics due to usage of
569-
`__attribute__((__noinline__))` in CUDA/HIP programs.
569+
- Added ``__noinline__`` as a keyword to avoid diagnostics due to usage of
570+
``__attribute__((__noinline__))`` in CUDA/HIP programs.
570571

571572
Objective-C Language Changes in Clang
572573
-------------------------------------
@@ -634,10 +635,10 @@ For targets without F16C feature or above, please make sure:
634635

635636
- Use GCC 12.0 and above if you are using libgcc.
636637
- If you are using compiler-rt, use the same version with the compiler.
637-
Early versions provided FP16 builtins in a different ABI. A workaround is to use
638-
a small code snippet to check the ABI if you cannot make sure of it.
638+
Early versions provided FP16 builtins in a different ABI. A workaround is to use
639+
a small code snippet to check the ABI if you cannot make sure of it.
639640
- If you are using downstream runtimes that provide FP16 conversions, update
640-
them with the new ABI.
641+
them with the new ABI.
641642

642643
DWARF Support in Clang
643644
----------------------
@@ -653,10 +654,10 @@ Arm and AArch64 Support in Clang
653654
--------------------------------
654655

655656
- clang now supports the Cortex-M85 CPU, which can be chosen with
656-
`-mcpu=cortex-m85`. By default, this has PACBTI turned on, but it can be
657-
disabled with `-mcpu=cortex-m85+nopacbti`.
657+
``-mcpu=cortex-m85``. By default, this has PACBTI turned on, but it can be
658+
disabled with ``-mcpu=cortex-m85+nopacbti``.
658659
- clang now supports using C/C++ operators on sizeless SVE vectors such as
659-
`svint32_t`. The set of supported operators is shown in the table Vector
660+
``svint32_t``. The set of supported operators is shown in the table Vector
660661
Operations found in the :ref:`Clang Language Extensions <Vector Operations>`
661662
document.
662663

@@ -716,10 +717,10 @@ clang-extdef-mapping
716717
libclang
717718
--------
718719

719-
- Introduce new option `CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION` that defaults to ON.
720+
- Introduce new option ``CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION`` that defaults to ON.
720721
This means that by default libclang's SOVERSION matches the major version of LLVM.
721722
Setting this to OFF makes the SOVERSION be the ABI compatible version (currently 13).
722-
See `discussion<https://discourse.llvm.org/t/rationale-for-removing-versioned-libclang-middle-ground-to-keep-it-behind-option/64410>`_
723+
See `discussion <https://discourse.llvm.org/t/rationale-for-removing-versioned-libclang-middle-ground-to-keep-it-behind-option/64410>`_
723724
here.
724725

725726
Static Analyzer
@@ -733,8 +734,8 @@ Static Analyzer
733734
positives.
734735

735736
- Added a new checker ``alpha.unix.cstring.UninitializedRead`` this will check for uninitialized reads
736-
from common memory copy/manipulation functions such as ``memcpy``, ``mempcpy``, ``memmove``, ``memcmp``, `
737-
`strcmp``, ``strncmp``, ``strcpy``, ``strlen``, ``strsep`` and many more. Although
737+
from common memory copy/manipulation functions such as ``memcpy``, ``mempcpy``, ``memmove``, ``memcmp``,
738+
``strcmp``, ``strncmp``, ``strcpy``, ``strlen``, ``strsep`` and many more. Although
738739
this checker currently is in list of alpha checkers due to a false positive.
739740

740741
- Added a new checker ``alpha.unix.Errno``. This can find the first read
@@ -783,5 +784,5 @@ this release by going into the "``clang/docs/``" directory in the Clang
783784
tree.
784785

785786
If you have any questions or comments about Clang, please feel free to
786-
contact us on the Discourse forums (Clang Frontend category)
787+
contact us on the `Discourse forums (Clang Frontend category)
787788
<https://discourse.llvm.org/c/clang/6>`_.

llvm/docs/ReleaseNotes.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ to build LLVM. The new requirements are as follows:
5656
* Visual Studio 2019 >= 16.7
5757

5858
In LLVM 15.x these requirements will be "soft" requirements and the version
59-
check can be skipped by passing -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
59+
check can be skipped by passing ``-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON``
6060
to CMake.
6161

6262
With the release of LLVM 16.x these requirements will be hard and LLVM developers
@@ -74,6 +74,7 @@ Changes to the LLVM IR
7474
* Renamed ``llvm.experimental.vector.insert`` intrinsic to ``llvm.vector.insert``.
7575
* The constant expression variants of the following instructions have been
7676
removed:
77+
7778
* ``extractvalue``
7879
* ``insertvalue``
7980
* ``udiv``
@@ -85,6 +86,7 @@ Changes to the LLVM IR
8586
* ``fmul``
8687
* ``fdiv``
8788
* ``frem``
89+
8890
* Added the support for ``fmax`` and ``fmin`` in ``atomicrmw`` instruction. The
8991
comparison is expected to match the behavior of ``llvm.maxnum.*`` and
9092
``llvm.minnum.*`` respectively.
@@ -146,7 +148,7 @@ Changes to the ARM Backend
146148
* Implemented generation of Windows SEH unwind information.
147149
* Switched the MinGW target to use SEH instead of DWARF for unwind information.
148150
* Added support for the Cortex-M85 CPU.
149-
* Added support for a new -mframe-chain=(none|aapcs|aapcs+leaf) command-line
151+
* Added support for a new ``-mframe-chain=(none|aapcs|aapcs+leaf)`` command-line
150152
option, which controls the generation of AAPCS-compliant Frame Records.
151153

152154
Changes to the AVR Backend
@@ -251,6 +253,7 @@ Changes to the C API
251253
because the underlying constant expressions are no longer supported. Instead,
252254
an instruction should be created using the ``LLVMBuildXYZ`` APIs, which will
253255
constant fold the operands if possible and create an instruction otherwise:
256+
254257
* ``LLVMConstExtractValue``
255258
* ``LLVMConstInsertValue``
256259
* ``LLVMConstUDiv``
@@ -270,6 +273,7 @@ Changes to the C API
270273

271274
* As part of the opaque pointer migration, the following APIs are deprecated and
272275
will be removed in the next release:
276+
273277
* ``LLVMBuildLoad`` -> ``LLVMBuildLoad2``
274278
* ``LLVMBuildCall`` -> ``LLVMBuildCall2``
275279
* ``LLVMBuildInvoke`` -> ``LLVMBuildInvoke2``
@@ -284,6 +288,7 @@ Changes to the C API
284288
* Refactor compression namespaces across the project, making way for a possible
285289
introduction of alternatives to zlib compression in the llvm toolchain.
286290
Changes are as follows:
291+
287292
* Relocate the ``llvm::zlib`` namespace to ``llvm::compression::zlib``.
288293
* Remove crc32 from zlib compression namespace, people should use the ``llvm::crc32`` instead.
289294

@@ -314,7 +319,7 @@ During this release ...
314319
Changes to the LLVM tools
315320
---------------------------------
316321

317-
* (Experimental) :manpage:`llvm-symbolizer(1)` now has ``--filter-markup`` to
322+
* (Experimental) :doc:`llvm-symbolizer <CommandGuide/llvm-symbolizer>` now has ``--filter-markup`` to
318323
filter :doc:`Symbolizer Markup </SymbolizerMarkupFormat>` into human-readable
319324
form.
320325
* :doc:`llvm-objcopy <CommandGuide/llvm-objcopy>` has removed support for the legacy ``zlib-gnu`` format.

0 commit comments

Comments
 (0)