@@ -109,6 +109,11 @@ What's New in Clang |release|?
109109C++ Language Changes
110110--------------------
111111
112+ - A new family of builtins ``__builtin_*_synthesises_from_spaceship `` has been added. These can be queried to know
113+ whether the ``< `` (``lt ``), ``> `` (``gt ``), ``<= `` (``le ``), or ``>= `` (``ge ``) operators are synthesised from a
114+ ``<=> ``. This makes it possible to optimize certain facilities by using the ``<=> `` operation directly instead of
115+ doing multiple comparisons.
116+
112117C++2c Feature Support
113118^^^^^^^^^^^^^^^^^^^^^
114119
@@ -129,6 +134,7 @@ C Language Changes
129134
130135C2y Feature Support
131136^^^^^^^^^^^^^^^^^^^
137+ - Clang now supports `N3355 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3355.htm >`_ Named Loops.
132138
133139C23 Feature Support
134140^^^^^^^^^^^^^^^^^^^
@@ -241,11 +247,13 @@ Improvements to Clang's diagnostics
241247 "format specifies type 'unsigned int' but the argument has type 'int', which differs in signedness [-Wformat-signedness]"
242248 "signedness of format specifier 'u' is incompatible with 'c' [-Wformat-signedness]"
243249 and the API-visible diagnostic id will be appropriate.
244-
250+
245251- Fixed false positives in ``-Waddress-of-packed-member `` diagnostics when
246252 potential misaligned members get processed before they can get discarded.
247253 (#GH144729)
248254
255+ - Clang now emits dignostic with correct message in case of assigning to const reference captured in lambda. (#GH105647)
256+
249257- Fixed false positive in ``-Wmissing-noreturn `` diagnostic when it was requiring the usage of
250258 ``[[noreturn]] `` on lambdas before C++23 (#GH154493).
251259
@@ -263,6 +271,10 @@ Improvements to Clang's diagnostics
263271 decorated with the ``alloc_size `` attribute don't allocate enough space for
264272 the target pointer type.
265273
274+ - The :doc: `ThreadSafetyAnalysis ` attributes ``ACQUIRED_BEFORE(...) `` and
275+ ``ACQUIRED_AFTER(...) `` have been moved to the stable feature set and no
276+ longer require ``-Wthread-safety-beta `` to be used.
277+
266278Improvements to Clang's time-trace
267279----------------------------------
268280
@@ -273,7 +285,7 @@ Bug Fixes in This Version
273285-------------------------
274286- Fix a crash when marco name is empty in ``#pragma push_macro("") `` or
275287 ``#pragma pop_macro("") ``. (#GH149762).
276- - Fix a crash in variable length array (e.g. ``int a[*] ``) function parameter type
288+ - Fix a crash in variable length array (e.g. ``int a[*] ``) function parameter type
277289 being used in ``_Countof `` expression. (#GH152826).
278290- ``-Wunreachable-code `` now diagnoses tautological or contradictory
279291 comparisons such as ``x != 0 || x != 1.0 `` and ``x == 0 && x == 1.0 `` on
@@ -358,7 +370,7 @@ X86 Support
358370 arithmetic can now be used in C++ constant expressions.
359371- Some SSE, AVX and AVX512 intrinsics have been converted to wrap
360372 generic __builtin intrinsics.
361- - NOTE: Please avoid use of the __builtin_ia32_* intrinsics - these are not
373+ - NOTE: Please avoid use of the __builtin_ia32_* intrinsics - these are not
362374 guaranteed to exist in future releases, or match behaviour with previous
363375 releases of clang or other compilers.
364376
0 commit comments