1 ===========================================
2 Clang |release| |ReleaseNotesTitle|
3 ===========================================
9 Written by the `LLVM Team <https://llvm.org/>`_
14 These are in-progress notes for the upcoming Clang |version| release.
15 Release notes for previous releases can be found on
16 `the Releases Page <https://llvm.org/releases/>`_.
21 This document contains the release notes for the Clang C/C++/Objective-C
22 frontend, part of the LLVM Compiler Infrastructure, release |release|. Here we
23 describe the status of Clang in some detail, including major
24 improvements from the previous release and new feature work. For the
25 general LLVM release notes, see `the LLVM
26 documentation <https://llvm.org/docs/ReleaseNotes.html>`_. For the libc++ release notes,
27 see `this page <https://libcxx.llvm.org/ReleaseNotes.html>`_. All LLVM releases
28 may be downloaded from the `LLVM releases web site <https://llvm.org/releases/>`_.
30 For more information about Clang or LLVM, including information about the
31 latest release, please see the `Clang Web Site <https://clang.llvm.org>`_ or the
32 `LLVM Web Site <https://llvm.org>`_.
34 Potentially Breaking Changes
35 ============================
36 These changes are ones which we think may surprise users when upgrading to
37 Clang |release| because of the opportunity they pose for disruption to existing
41 C/C++ Language Potentially Breaking Changes
42 -------------------------------------------
44 - The default extension name for PCH generation (``-c -xc-header`` and ``-c
45 -xc++-header``) is now ``.pch`` instead of ``.gch``.
46 - ``-include a.h`` probing ``a.h.gch`` will now ignore ``a.h.gch`` if it is not
47 a clang pch file or a directory containing any clang pch file.
48 - Fixed a bug that caused ``__has_cpp_attribute`` and ``__has_c_attribute``
49 return incorrect values for some C++-11-style attributes. Below is a complete
50 list of behavior changes.
53 :header: Test, Old value, New value
55 ``__has_cpp_attribute(unused)``, 201603, 0
56 ``__has_cpp_attribute(gnu::unused)``, 201603, 1
57 ``__has_c_attribute(unused)``, 202106, 0
58 ``__has_cpp_attribute(clang::fallthrough)``, 201603, 1
59 ``__has_cpp_attribute(gnu::fallthrough)``, 201603, 1
60 ``__has_c_attribute(gnu::fallthrough)``, 201910, 1
61 ``__has_cpp_attribute(warn_unused_result)``, 201907, 0
62 ``__has_cpp_attribute(clang::warn_unused_result)``, 201907, 1
63 ``__has_cpp_attribute(gnu::warn_unused_result)``, 201907, 1
64 ``__has_c_attribute(warn_unused_result)``, 202003, 0
65 ``__has_c_attribute(gnu::warn_unused_result)``, 202003, 1
67 - Fixed a bug in finding matching `operator!=` while adding reversed `operator==` as
68 outlined in "The Equality Operator You Are Looking For" (`P2468 <http://wg21.link/p2468r2>`_).
69 Fixes (`#68901: <https://github.com/llvm/llvm-project/issues/68901>`_).
71 C++ Specific Potentially Breaking Changes
72 -----------------------------------------
73 - The name mangling rules for function templates has been changed to take into
74 account the possibility that functions could be overloaded on their template
75 parameter lists or requires-clauses. This causes mangled names to change for
76 function templates in the following cases:
78 - When a template parameter in a function template depends on a previous
79 template parameter, such as ``template<typename T, T V> void f()``.
80 - When the function has any constraints, whether from constrained template
81 parameters or requires-clauses.
82 - When the template parameter list includes a deduced type -- either
83 ``auto``, ``decltype(auto)``, or a deduced class template specialization
85 - When a template template parameter is given a template template argument
86 that has a different template parameter list.
88 This fixes a number of issues where valid programs would be rejected due to
89 mangling collisions, or would in some cases be silently miscompiled. Clang
90 will use the old manglings if ``-fclang-abi-compat=17`` or lower is
92 (`#48216 <https://github.com/llvm/llvm-project/issues/48216>`_),
93 (`#49884 <https://github.com/llvm/llvm-project/issues/49884>`_), and
94 (`#61273 <https://github.com/llvm/llvm-project/issues/61273>`_)
96 - The `ClassScopeFunctionSpecializationDecl` AST node has been removed.
97 Dependent class scope explicit function template specializations now use
98 `DependentFunctionTemplateSpecializationInfo` to store candidate primary
99 templates and explicit template arguments. This should not impact users of
100 Clang as a compiler, but it may break assumptions in Clang-based tools
101 iterating over the AST.
103 - The warning `-Wenum-constexpr-conversion` is now also enabled by default on
104 system headers and macros. It will be turned into a hard (non-downgradable)
105 error in the next Clang release.
107 - The flag `-fdelayed-template-parsing` won't be enabled by default with C++20
108 when targetting MSVC to match the behavior of MSVC.
109 (`MSVC Docs <https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170>`_)
111 ABI Changes in This Version
112 ---------------------------
113 - Following the SystemV ABI for x86-64, ``__int128`` arguments will no longer
114 be split between a register and a stack slot.
116 AST Dumping Potentially Breaking Changes
117 ----------------------------------------
118 - When dumping a sugared type, Clang will no longer print the desugared type if
119 its textual representation is the same as the sugared one. This applies to
120 both text dumps of the form ``'foo':'foo'`` which will now be dumped as just
121 ``'foo'``, and JSON dumps of the form:
127 "desugaredQualType": "foo"
130 which will now be dumped as just:
138 What's New in Clang |release|?
139 ==============================
140 Some of the major new features and improvements to Clang are listed
141 here. Generic improvements to Clang as a whole or to its underlying
142 infrastructure are described first, followed by language-specific
143 sections with improvements to Clang's support for those languages.
148 C++20 Feature Support
149 ^^^^^^^^^^^^^^^^^^^^^
151 C++23 Feature Support
152 ^^^^^^^^^^^^^^^^^^^^^
153 - Implemented `P0847R7: Deducing this <https://wg21.link/P0847R7>`_. Some related core issues were also
154 implemented (`CWG2553 <https://wg21.link/CWG2553>`_, `CWG2554 <https://wg21.link/CWG2554>`_,
155 `CWG2653 <https://wg21.link/CWG2653>`_, `CWG2687 <https://wg21.link/CWG2687>`_). Because the
156 support for this feature is still experimental, the feature test macro ``__cpp_explicit_this_parameter``
157 was not set in this version.
159 - Added a separate warning to warn the use of attributes on lambdas as a C++23 extension
160 in previous language versions: ``-Wc++23-lambda-attributes``.
162 C++2c Feature Support
163 ^^^^^^^^^^^^^^^^^^^^^
165 - Implemented `P2169R4: A nice placeholder with no name <https://wg21.link/P2169R4>`_. This allows using ``_``
166 as a variable name multiple times in the same scope and is supported in all C++ language modes as an extension.
167 An extension warning is produced when multiple variables are introduced by ``_`` in the same scope.
168 Unused warnings are no longer produced for variables named ``_``.
169 Currently, inspecting placeholders variables in a debugger when more than one are declared in the same scope
175 int _, _; // Was invalid, now OK
178 int _, _; // Was invalid, now OK
181 int _; // Previously diagnosed under -Wunused, no longer diagnosed
184 - Attributes now expect unevaluated strings in attributes parameters that are string literals.
185 This is applied to both C++ standard attributes, and other attributes supported by Clang.
186 This completes the implementation of `P2361R6 Unevaluated Strings <https://wg21.link/P2361R6>`_
188 - Implemented `P2864R2 Remove Deprecated Arithmetic Conversion on Enumerations From C++26 <https://wg21.link/P2864R2>`_.
190 - Implemented `P2361R6 Template parameter initialization <https://wg21.link/P2308R1>`_.
191 This change is applied as a DR in all language modes.
194 Resolutions to C++ Defect Reports
195 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
199 - ``structs``, ``unions``, and ``arrays`` that are const may now be used as
200 constant expressions. This change is more consistent with the behavior of
202 - Enums will now be represented in TBAA metadata using their actual underlying
203 integer type. Previously they were treated as chars, which meant they could
204 alias with all other types.
208 - Clang now accepts ``-std=c23`` and ``-std=gnu23`` as language standard modes,
209 and the ``__STDC_VERSION__`` macro now expands to ``202311L`` instead of its
210 previous placeholder value. Clang continues to accept ``-std=c2x`` and
211 ``-std=gnu2x`` as aliases for C23 and GNU C23, respectively.
212 - Clang now supports `requires c23` for module maps.
213 - Clang now supports ``N3007 Type inference for object definitions``.
215 - Clang now supports ``<stdckdint.h>`` which defines several macros for performing
216 checked integer arithmetic. It is also exposed in pre-C23 modes.
218 - Completed the implementation of
219 `N2508 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2508.pdf>`_. We
220 previously implemented allowing a label at the end of a compound statement,
221 and now we've implemented allowing a label to be followed by a declaration
222 instead of a statement.
224 Non-comprehensive list of changes in this release
225 -------------------------------------------------
227 * Clang now has a ``__builtin_vectorelements()`` function that determines the number of elements in a vector.
228 For fixed-sized vectors, e.g., defined via ``__attribute__((vector_size(N)))`` or ARM NEON's vector types
229 (e.g., ``uint16x8_t``), this returns the constant number of elements at compile-time.
230 For scalable vectors, e.g., SVE or RISC-V V, the number of elements is not known at compile-time and is
231 determined at runtime.
232 * The ``__datasizeof`` keyword has been added. It is similar to ``sizeof``
233 except that it returns the size of a type ignoring tail padding.
234 * ``__builtin_classify_type()`` now classifies ``_BitInt`` values as the return value ``18``
235 and vector types as return value ``19``, to match GCC 14's behavior.
236 * The default value of `_MSC_VER` was raised from 1920 to 1933.
237 * Since MSVC 19.33 added undocumented attribute ``[[msvc::constexpr]]``, this release adds the attribute as well.
239 * Added ``#pragma clang fp reciprocal``.
244 * ``-fverify-intermediate-code`` and its complement ``-fno-verify-intermediate-code``.
245 Enables or disables verification of the generated LLVM IR.
246 Users can pass this to turn on extra verification to catch certain types of
247 compiler bugs at the cost of extra compile time.
248 Since enabling the verifier adds a non-trivial cost of a few percent impact on
249 build times, it's disabled by default, unless your LLVM distribution itself is
250 compiled with runtime checks enabled.
251 * ``-fkeep-system-includes`` modifies the behavior of the ``-E`` option,
252 preserving ``#include`` directives for "system" headers instead of copying
253 the preprocessed text to the output. This can greatly reduce the size of the
254 preprocessed output, which can be helpful when trying to reduce a test case.
255 * ``-fassume-nothrow-exception-dtor`` is added to assume that the destructor of
256 an thrown exception object will not throw. The generated code for catch
257 handlers will be smaller. A throw expression of a type with a
258 potentially-throwing destructor will lead to an error.
260 * ``-fopenacc`` was added as a part of the effort to support OpenACC in clang.
262 * ``-fcx-limited-range`` enables the naive mathematical formulas for complex
263 division and multiplication with no NaN checking of results. The default is
264 ``-fno-cx-limited-range``, but this option is enabled by ``-ffast-math``.
266 * ``-fcx-fortran-rules`` enables the naive mathematical formulas for complex
267 multiplication and enables application of Smith's algorithm for complex
268 division. See SMITH, R. L. Algorithm 116: Complex division. Commun. ACM 5, 8
269 (1962). The default is ``-fno-cx-fortran-rules``.
272 Deprecated Compiler Flags
273 -------------------------
275 Modified Compiler Flags
276 -----------------------
278 * ``-Woverriding-t-option`` is renamed to ``-Woverriding-option``.
279 * ``-Winterrupt-service-routine`` is renamed to ``-Wexcessive-regsave`` as a generalization
280 * ``-frewrite-includes`` now guards the original #include directives with
281 ``__CLANG_REWRITTEN_INCLUDES``, and ``__CLANG_REWRITTEN_SYSTEM_INCLUDES`` as
283 * Introducing a new default calling convention for ``-fdefault-calling-conv``:
284 ``rtdcall``. This new default CC only works for M68k and will use the new
285 ``m68k_rtdcc`` CC on every functions that are not variadic. The ``-mrtd``
286 driver/frontend flag has the same effect when targeting M68k.
288 Removed Compiler Flags
289 -------------------------
291 * ``-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang`` has been removed.
292 It has not been needed to enable ``-ftrivial-auto-var-init=zero`` since Clang 16.
294 Attribute Changes in Clang
295 --------------------------
296 - On X86, a warning is now emitted if a function with ``__attribute__((no_caller_saved_registers))``
297 calls a function without ``__attribute__((no_caller_saved_registers))``, and is not compiled with
298 ``-mgeneral-regs-only``
299 - On X86, a function with ``__attribute__((interrupt))`` can now call a function without
300 ``__attribute__((no_caller_saved_registers))`` provided that it is compiled with ``-mgeneral-regs-only``
302 - When a non-variadic function is decorated with the ``format`` attribute,
303 Clang now checks that the format string would match the function's parameters'
304 types after default argument promotion. As a result, it's no longer an
305 automatic diagnostic to use parameters of types that the format style
306 supports but that are never the result of default argument promotion, such as
307 ``float``. (`#59824: <https://github.com/llvm/llvm-project/issues/59824>`_)
309 - Clang now supports ``[[clang::preferred_type(type-name)]]`` as an attribute
310 which can be applied to a bit-field. This attribute helps to map a bit-field
311 back to a particular type that may be better-suited to representing the bit-
312 field but cannot be used for other reasons and will impact the debug
313 information generated for the bit-field. This is most useful when mapping a
314 bit-field of basic integer type back to a ``bool`` or an enumeration type,
319 enum E { Apple, Orange, Pear };
321 [[clang::preferred_type(E)]] unsigned FruitKind : 2;
324 When viewing ``S::FruitKind`` in a debugger, it will behave as if the member
325 was declared as type ``E`` rather than ``unsigned``.
327 - Clang now warns you that the ``_Alignas`` attribute on declaration specifiers
328 is ignored, changed from the former incorrect suggestion to move it past
329 declaration specifiers. (`#58637 <https://github.com/llvm/llvm-project/issues/58637>`_)
331 - Clang now introduced ``[[clang::coro_only_destroy_when_complete]]`` attribute
332 to reduce the size of the destroy functions for coroutines which are known to
333 be destroyed after having reached the final suspend point.
335 - Clang now introduced ``[[clang::coro_return_type]]`` and ``[[clang::coro_wrapper]]``
336 attributes. A function returning a type marked with ``[[clang::coro_return_type]]``
337 should be a coroutine. A non-coroutine function marked with ``[[clang::coro_wrapper]]``
338 is still allowed to return the such a type. This is helpful for analyzers to recognize coroutines from the function signatures.
340 - Clang now supports ``[[clang::code_align(N)]]`` as an attribute which can be
341 applied to a loop and specifies the byte alignment for a loop. This attribute
342 accepts a positive integer constant initialization expression indicating the
343 number of bytes for the minimum alignment boundary. Its value must be a power
344 of 2, between 1 and 4096(inclusive).
348 void Array(int *array, size_t n) {
349 [[clang::code_align(64)]] for (int i = 0; i < n; ++i) array[i] = 0;
354 [[clang::code_align(A)]] for(;;) { }
357 - Clang now introduced ``[[clang::coro_lifetimebound]]`` attribute.
358 All parameters of a function are considered to be lifetime bound if the function
359 returns a type annotated with ``[[clang::coro_lifetimebound]]`` and ``[[clang::coro_return_type]]``.
361 Improvements to Clang's diagnostics
362 -----------------------------------
363 - Clang constexpr evaluator now prints template arguments when displaying
364 template-specialization function calls.
365 - Clang contexpr evaluator now displays notes as well as an error when a constructor
366 of a base class is not called in the constructor of its derived class.
367 - Clang no longer emits ``-Wmissing-variable-declarations`` for variables declared
368 with the ``register`` storage class.
369 - Clang's ``-Wswitch-default`` flag now diagnoses whenever a ``switch`` statement
370 does not have a ``default`` label.
371 - Clang's ``-Wtautological-negation-compare`` flag now diagnoses logical
372 tautologies like ``x && !x`` and ``!x || x`` in expressions. This also
373 makes ``-Winfinite-recursion`` diagnose more cases.
374 (`#56035: <https://github.com/llvm/llvm-project/issues/56035>`_).
375 - Clang constexpr evaluator now diagnoses compound assignment operators against
376 uninitialized variables as a read of uninitialized object.
377 (`#51536 <https://github.com/llvm/llvm-project/issues/51536>`_)
378 - Clang's ``-Wformat-truncation`` now diagnoses ``snprintf`` call that is known to
379 result in string truncation.
380 (`#64871: <https://github.com/llvm/llvm-project/issues/64871>`_).
381 Existing warnings that similarly warn about the overflow in ``sprintf``
382 now falls under its own warning group ```-Wformat-overflow`` so that it can
383 be disabled separately from ``Wfortify-source``.
384 These two new warning groups have subgroups ``-Wformat-truncation-non-kprintf``
385 and ``-Wformat-overflow-non-kprintf``, respectively. These subgroups are used when
386 the format string contains ``%p`` format specifier.
387 Because Linux kernel's codebase has format extensions for ``%p``, kernel developers
388 are encouraged to disable these two subgroups by setting ``-Wno-format-truncation-non-kprintf``
389 and ``-Wno-format-overflow-non-kprintf`` in order to avoid false positives on
391 Also clang no longer emits false positive warnings about the output length of
392 ``%g`` format specifier and about ``%o, %x, %X`` with ``#`` flag.
393 - Clang now emits ``-Wcast-qual`` for functional-style cast expressions.
394 - Clang no longer emits irrelevant notes about unsatisfied constraint expressions
395 on the left-hand side of ``||`` when the right-hand side constraint is satisfied.
396 (`#54678: <https://github.com/llvm/llvm-project/issues/54678>`_).
397 - Clang now prints its 'note' diagnostic in cyan instead of black, to be more compatible
398 with terminals with dark background colors. This is also more consistent with GCC.
399 - Clang now displays an improved diagnostic and a note when a defaulted special
400 member is marked ``constexpr`` in a class with a virtual base class
401 (`#64843: <https://github.com/llvm/llvm-project/issues/64843>`_).
402 - ``-Wfixed-enum-extension`` and ``-Wmicrosoft-fixed-enum`` diagnostics are no longer
403 emitted when building as C23, since C23 standardizes support for enums with a
404 fixed underlying type.
405 - When describing the failure of static assertion of `==` expression, clang prints the integer
406 representation of the value as well as its character representation when
407 the user-provided expression is of character type. If the character is
408 non-printable, clang now shows the escpaed character.
409 Clang also prints multi-byte characters if the user-provided expression
410 is of multi-byte character type.
416 static_assert("A\n"[1] == U'🌍');
422 source:1:15: error: static assertion failed due to requirement '"A\n"[1] == U'\U0001f30d''
423 1 | static_assert("A\n"[1] == U'🌍');
425 source:1:24: note: expression evaluates to ''
427 1 | static_assert("A\n"[1] == U'🌍');
434 source:1:15: error: static assertion failed due to requirement '"A\n"[1] == U'\U0001f30d''
435 1 | static_assert("A\n"[1] == U'🌍');
437 source:1:24: note: expression evaluates to ''\n' (0x0A, 10) == U'🌍' (0x1F30D, 127757)'
438 1 | static_assert("A\n"[1] == U'🌍');
440 - Clang now always diagnoses when using non-standard layout types in ``offsetof`` .
441 (`#64619: <https://github.com/llvm/llvm-project/issues/64619>`_)
442 - Clang now diagnoses redefined defaulted constructor when redefined
443 defaulted constructor with different exception specs.
444 (`#69094: <https://github.com/llvm/llvm-project/issues/69094>`_)
445 - Clang now diagnoses use of variable-length arrays in C++ by default (and
446 under ``-Wall`` in GNU++ mode). This is an extension supported by Clang and
447 GCC, but is very easy to accidentally use without realizing it's a
448 nonportable construct that has different semantics from a constant-sized
449 array. (`#62836 <https://github.com/llvm/llvm-project/issues/62836>`_)
451 - Clang changed the order in which it displays candidate functions on overloading failures.
452 Previously, Clang used definition of ordering from the C++ Standard. The order defined in
453 the Standard is partial and is not suited for sorting. Instead, Clang now uses a strict
454 order that still attempts to push more relevant functions to the top by comparing their
455 corresponding conversions. In some cases, this results in better order. E.g., for the
462 operator const char*();
465 void test() { Foo() - Foo(); }
467 Clang now produces a list with two most relevant builtin operators at the top,
468 i.e. ``operator-(int, int)`` and ``operator-(const char*, const char*)``.
469 Previously ``operator-(const char*, const char*)`` was the first element,
470 but ``operator-(int, int)`` was only the 13th element in the output.
471 However, new implementation does not take into account some aspects of
472 C++ semantics, e.g. which function template is more specialized. This
473 can sometimes lead to worse ordering.
476 - When describing a warning/error in a function-style type conversion Clang underlines only until
477 the end of the expression we convert from. Now Clang underlines until the closing parenthesis.
483 warning: cast from 'long (*)(const int &)' to 'decltype(fun_ptr)' (aka 'long (*)(int &)') converts to incompatible function type [-Wcast-function-type-strict]
484 24 | return decltype(fun_ptr)( f_ptr /*comment*/);
485 | ^~~~~~~~~~~~~~~~~~~~~~~~
491 warning: cast from 'long (*)(const int &)' to 'decltype(fun_ptr)' (aka 'long (*)(int &)') converts to incompatible function type [-Wcast-function-type-strict]
492 24 | return decltype(fun_ptr)( f_ptr /*comment*/);
493 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495 - ``-Wzero-as-null-pointer-constant`` diagnostic is no longer emitted when using ``__null``
496 (or, more commonly, ``NULL`` when the platform defines it as ``__null``) to be more consistent
498 - Clang will warn on deprecated specializations used in system headers when their instantiation
499 is caused by user code.
500 - Clang will now print ``static_assert`` failure details for arithmetic binary operators.
505 static_assert(1 << 4 == 15);
511 error: static assertion failed due to requirement '1 << 4 == 15'
512 48 | static_assert(1 << 4 == 15);
514 note: expression evaluates to '16 == 15'
515 48 | static_assert(1 << 4 == 15);
518 - Clang now diagnoses definitions of friend function specializations, e.g. ``friend void f<>(int) {}``.
519 - Clang now diagnoses narrowing conversions involving const references.
520 (`#63151: <https://github.com/llvm/llvm-project/issues/63151>`_).
523 Improvements to Clang's time-trace
524 ----------------------------------
525 - Two time-trace scope variables are added. A time trace scope variable of
526 ``ParseDeclarationOrFunctionDefinition`` with the function's source location
527 is added to record the time spent parsing the function's declaration or
528 definition. Another time trace scope variable of ``ParseFunctionDefinition``
529 is also added to record the name of the defined function.
531 Bug Fixes in This Version
532 -------------------------
533 - Fixed an issue where a class template specialization whose declaration is
534 instantiated in one module and whose definition is instantiated in another
535 module may end up with members associated with the wrong declaration of the
536 class, which can result in miscompiles in some cases.
537 - Fix crash on use of a variadic overloaded operator.
538 (`#42535 <https://github.com/llvm/llvm-project/issues/42535>`_)
539 - Fix a hang on valid C code passing a function type as an argument to
540 ``typeof`` to form a function declaration.
541 (`#64713 <https://github.com/llvm/llvm-project/issues/64713>`_)
542 - Clang now reports missing-field-initializers warning for missing designated
544 (`#56628 <https://github.com/llvm/llvm-project/issues/56628>`_)
545 - Clang now respects ``-fwrapv`` and ``-ftrapv`` for ``__builtin_abs`` and
547 (`#45129 <https://github.com/llvm/llvm-project/issues/45129>`_,
548 `#45794 <https://github.com/llvm/llvm-project/issues/45794>`_)
549 - Fixed an issue where accesses to the local variables of a coroutine during
550 ``await_suspend`` could be misoptimized, including accesses to the awaiter
552 (`#56301 <https://github.com/llvm/llvm-project/issues/56301>`_)
553 The current solution may bring performance regressions if the awaiters have
554 non-static data members. See
555 `#64945 <https://github.com/llvm/llvm-project/issues/64945>`_ for details.
556 - Clang now prints unnamed members in diagnostic messages instead of giving an
558 (`#63759 <https://github.com/llvm/llvm-project/issues/63759>`_)
559 - Fix crash in __builtin_strncmp and related builtins when the size value
560 exceeded the maximum value representable by int64_t. Fixes
561 (`#64876 <https://github.com/llvm/llvm-project/issues/64876>`_)
562 - Fixed an assertion if a function has cleanups and fatal erors.
563 (`#48974 <https://github.com/llvm/llvm-project/issues/48974>`_)
564 - Clang now emits an error if it is not possible to deduce array size for a
565 variable with incomplete array type.
566 (`#37257 <https://github.com/llvm/llvm-project/issues/37257>`_)
567 - Clang's ``-Wunused-private-field`` no longer warns on fields whose type is
568 declared with ``[[maybe_unused]]``.
569 (`#61334 <https://github.com/llvm/llvm-project/issues/61334>`_)
570 - For function multi-versioning using the ``target``, ``target_clones``, or
571 ``target_version`` attributes, remove comdat for internal linkage functions.
572 (`#65114 <https://github.com/llvm/llvm-project/issues/65114>`_)
573 - Clang now reports ``-Wformat`` for bool value and char specifier confusion
575 (`#64987 <https://github.com/llvm/llvm-project/issues/64987>`_)
576 - Support MSVC predefined macro expressions in constant expressions and in
578 - Correctly parse non-ascii identifiers that appear immediately after a line splicing
579 (`#65156 <https://github.com/llvm/llvm-project/issues/65156>`_)
580 - Clang no longer considers the loss of ``__unaligned`` qualifier from objects as
581 an invalid conversion during method function overload resolution.
582 - Fix lack of comparison of declRefExpr in ASTStructuralEquivalence
583 (`#66047 <https://github.com/llvm/llvm-project/issues/66047>`_)
584 - Fix parser crash when dealing with ill-formed objective C++ header code. Fixes
585 (`#64836 <https://github.com/llvm/llvm-project/issues/64836>`_)
586 - Fix crash in implicit conversions from initialize list to arrays of unknown
587 bound for C++20. Fixes
588 (`#62945 <https://github.com/llvm/llvm-project/issues/62945>`_)
589 - Clang now allows an ``_Atomic`` qualified integer in a switch statement. Fixes
590 (`#65557 <https://github.com/llvm/llvm-project/issues/65557>`_)
591 - Fixes crash when trying to obtain the common sugared type of
592 `decltype(instantiation-dependent-expr)`.
593 Fixes (`#67603 <https://github.com/llvm/llvm-project/issues/67603>`_)
594 - Fixes a crash caused by a multidimensional array being captured by a lambda
595 (`#67722 <https://github.com/llvm/llvm-project/issues/67722>`_).
596 - Fixes a crash when instantiating a lambda with requires clause.
597 (`#64462 <https://github.com/llvm/llvm-project/issues/64462>`_)
598 - Fixes a regression where the ``UserDefinedLiteral`` was not properly preserved
599 while evaluating consteval functions. (`#63898 <https://github.com/llvm/llvm-project/issues/63898>`_).
600 - Fix a crash when evaluating value-dependent structured binding
601 variables at compile time.
602 Fixes (`#67690 <https://github.com/llvm/llvm-project/issues/67690>`_)
603 - Fixes a ``clang-17`` regression where ``LLVM_UNREACHABLE_OPTIMIZE=OFF``
604 cannot be used with ``Release`` mode builds. (`#68237 <https://github.com/llvm/llvm-project/issues/68237>`_).
605 - Fix crash in evaluating ``constexpr`` value for invalid template function.
606 Fixes (`#68542 <https://github.com/llvm/llvm-project/issues/68542>`_)
607 - Clang will correctly evaluate ``noexcept`` expression for template functions
608 of template classes. Fixes
609 (`#68543 <https://github.com/llvm/llvm-project/issues/68543>`_,
610 `#42496 <https://github.com/llvm/llvm-project/issues/42496>`_)
611 - Fixed an issue when a shift count larger than ``__INT64_MAX__``, in a right
612 shift operation, could result in missing warnings about
613 ``shift count >= width of type`` or internal compiler error.
614 - Fixed an issue with computing the common type for the LHS and RHS of a `?:`
615 operator in C. No longer issuing a confusing diagnostic along the lines of
616 "incompatible operand types ('foo' and 'foo')" with extensions such as matrix
617 types. Fixes (`#69008 <https://github.com/llvm/llvm-project/issues/69008>`_)
618 - Clang no longer permits using the `_BitInt` types as an underlying type for an
619 enumeration as specified in the C23 Standard.
620 Fixes (`#69619 <https://github.com/llvm/llvm-project/issues/69619>`_)
621 - Fixed an issue when a shift count specified by a small constant ``_BitInt()``,
622 in a left shift operation, could result in a faulty warnings about
623 ``shift count >= width of type``.
624 - Clang now accepts anonymous members initialized with designated initializers
626 Fixes (`#65143 <https://github.com/llvm/llvm-project/issues/65143>`_)
627 - Fix crash in formatting the real/imaginary part of a complex lvalue.
628 Fixes (`#69218 <https://github.com/llvm/llvm-project/issues/69218>`_)
629 - No longer use C++ ``thread_local`` semantics in C23 when using
630 ``thread_local`` instead of ``_Thread_local``.
631 Fixes (`#70068 <https://github.com/llvm/llvm-project/issues/70068>`_) and
632 (`#69167 <https://github.com/llvm/llvm-project/issues/69167>`_)
633 - Fix crash in evaluating invalid lambda expression which forget capture this.
634 Fixes (`#67687 <https://github.com/llvm/llvm-project/issues/67687>`_)
635 - Fix crash from constexpr evaluator evaluating uninitialized arrays as rvalue.
636 Fixes (`#67317 <https://github.com/llvm/llvm-project/issues/67317>`_)
637 - Clang now properly diagnoses use of stand-alone OpenMP directives after a
638 label (including ``case`` or ``default`` labels).
645 #pragma omp barrier // ok
652 #pragma omp barrier // error: '#pragma omp barrier' cannot be an immediate substatement
654 - Fixed an issue that a benign assertion might hit when instantiating a pack expansion
655 inside a lambda. (`#61460 <https://github.com/llvm/llvm-project/issues/61460>`_)
656 - Fix crash during instantiation of some class template specializations within class
657 templates. Fixes (`#70375 <https://github.com/llvm/llvm-project/issues/70375>`_)
658 - Fix crash during code generation of C++ coroutine initial suspend when the return
659 type of await_resume is not trivially destructible.
660 Fixes (`#63803 <https://github.com/llvm/llvm-project/issues/63803>`_)
661 - ``__is_trivially_relocatable`` no longer returns true for non-object types
662 such as references and functions.
663 Fixes (`#67498 <https://github.com/llvm/llvm-project/issues/67498>`_)
664 - Fix crash when the object used as a ``static_assert`` message has ``size`` or ``data`` members
665 which are not member functions.
666 - Support UDLs in ``static_assert`` message.
667 - Fixed false positive error emitted by clang when performing qualified name
668 lookup and the current class instantiation has dependent bases.
669 Fixes (`#13826 <https://github.com/llvm/llvm-project/issues/13826>`_)
670 - Fix a ``clang-17`` regression where a templated friend with constraints is not
671 properly applied when its parameters reference an enclosing non-template class.
672 Fixes (`#71595 <https://github.com/llvm/llvm-project/issues/71595>`_)
673 - Fix the name of the ifunc symbol emitted for multiversion functions declared with the
674 ``target_clones`` attribute. This addresses a linker error that would otherwise occur
675 when these functions are referenced from other TUs.
676 - Fixes compile error that double colon operator cannot resolve macro with parentheses.
677 Fixes (`#64467 <https://github.com/llvm/llvm-project/issues/64467>`_)
678 - Clang's ``-Wchar-subscripts`` no longer warns on chars whose values are known non-negative constants.
679 Fixes (`#18763 <https://github.com/llvm/llvm-project/issues/18763>`_)
680 - Fix crash due to incorrectly allowing conversion functions in copy elision.
681 Fixes (`#39319 <https://github.com/llvm/llvm-project/issues/39319>`_) and
682 (`#60182 <https://github.com/llvm/llvm-project/issues/60182>`_) and
683 (`#62157 <https://github.com/llvm/llvm-project/issues/62157>`_) and
684 (`#64885 <https://github.com/llvm/llvm-project/issues/64885>`_) and
685 (`#65568 <https://github.com/llvm/llvm-project/issues/65568>`_)
686 - Fix an issue where clang doesn't respect detault template arguments that
687 are added in a later redeclaration for CTAD.
688 Fixes (#69987 <https://github.com/llvm/llvm-project/issues/69987>`_)
689 - Fix an issue where CTAD fails for explicit type conversion.
690 Fixes (#64347 <https://github.com/llvm/llvm-project/issues/64347>`_)
693 Bug Fixes to Compiler Builtins
694 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
696 Bug Fixes to Attribute Support
697 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
699 Bug Fixes to C++ Support
700 ^^^^^^^^^^^^^^^^^^^^^^^^
702 - Clang limits the size of arrays it will try to evaluate at compile time
703 to avoid memory exhaustion.
704 This limit can be modified by `-fconstexpr-steps`.
705 (`#63562 <https://github.com/llvm/llvm-project/issues/63562>`_)
707 - Fix a crash caused by some named unicode escape sequences designating
708 a Unicode character whose name contains a ``-``.
709 (Fixes `#64161 <https://github.com/llvm/llvm-project/issues/64161>`_)
711 - Fix cases where we ignore ambiguous name lookup when looking up members.
712 (`#22413 <https://github.com/llvm/llvm-project/issues/22413>`_),
713 (`#29942 <https://github.com/llvm/llvm-project/issues/29942>`_),
714 (`#35574 <https://github.com/llvm/llvm-project/issues/35574>`_) and
715 (`#27224 <https://github.com/llvm/llvm-project/issues/27224>`_).
717 - Clang emits an error on substitution failure within lambda body inside a
718 requires-expression. This fixes:
719 (`#64138 <https://github.com/llvm/llvm-project/issues/64138>`_).
721 - Update ``FunctionDeclBitfields.NumFunctionDeclBits``. This fixes:
722 (`#64171 <https://github.com/llvm/llvm-project/issues/64171>`_).
724 - Expressions producing ``nullptr`` are correctly evaluated
725 by the constant interpreter when appearing as the operand
726 of a binary comparison.
727 (`#64923 <https://github.com/llvm/llvm-project/issues/64923>`_)
729 - Fix a crash when an immediate invocation is not a constant expression
730 and appear in an implicit cast.
731 (`#64949 <https://github.com/llvm/llvm-project/issues/64949>`_).
733 - Fix crash when parsing ill-formed lambda trailing return type. Fixes:
734 (`#64962 <https://github.com/llvm/llvm-project/issues/64962>`_) and
735 (`#28679 <https://github.com/llvm/llvm-project/issues/28679>`_).
737 - Fix a crash caused by substitution failure in expression requirements.
738 (`#64172 <https://github.com/llvm/llvm-project/issues/64172>`_) and
739 (`#64723 <https://github.com/llvm/llvm-project/issues/64723>`_).
741 - Fix crash when parsing the requires clause of some generic lambdas.
742 (`#64689 <https://github.com/llvm/llvm-project/issues/64689>`_)
744 - Fix crash when the trailing return type of a generic and dependent
745 lambda refers to an init-capture.
746 (`#65067 <https://github.com/llvm/llvm-project/issues/65067>`_ and
747 `#63675 <https://github.com/llvm/llvm-project/issues/63675>`_)
749 - Clang now properly handles out of line template specializations when there is
750 a non-template inner-class between the function and the class template.
751 (`#65810 <https://github.com/llvm/llvm-project/issues/65810>`_)
753 - Fix a crash when calling a non-constant immediate function
754 in the initializer of a static data member.
755 (`#65985 <https://github.com/llvm/llvm-project/issues/65985>_`).
756 - Clang now properly converts static lambda call operator to function
758 (`#62594 <https://github.com/llvm/llvm-project/issues/62594>`_)
760 - Fixed some cases where the source location for an instantiated specialization
761 of a function template or a member function of a class template was assigned
762 the location of a non-defining declaration rather than the location of the
763 definition the specialization was instantiated from.
764 (`#26057 <https://github.com/llvm/llvm-project/issues/26057>`_`)
766 - Fix a crash when a default member initializer of a base aggregate
767 makes an invalid call to an immediate function.
768 (`#66324 <https://github.com/llvm/llvm-project/issues/66324>`_)
770 - Fix crash for a lambda attribute with a statement expression
771 that contains a `return`.
772 (`#48527 <https://github.com/llvm/llvm-project/issues/48527>`_)
774 - Clang now no longer asserts when an UnresolvedLookupExpr is used as an
775 expression requirement. (`#66612 https://github.com/llvm/llvm-project/issues/66612`)
777 - Clang now disambiguates NTTP types when printing diagnostics where the
778 NTTP types are compared with the 'diff' method.
779 (`#66744 https://github.com/llvm/llvm-project/issues/66744`)
781 - Fix crash caused by a spaceship operator returning a comparision category by
783 (`#64162 <https://github.com/llvm/llvm-project/issues/64162>`_)
784 - Fix a crash when calling a consteval function in an expression used as
785 the size of an array.
786 (`#65520 <https://github.com/llvm/llvm-project/issues/65520>`_)
788 - Clang no longer tries to capture non-odr-used variables that appear
789 in the enclosing expression of a lambda expression with a noexcept specifier.
790 (`#67492 <https://github.com/llvm/llvm-project/issues/67492>`_)
792 - Fix crash when fold expression was used in the initialization of default
794 (`#67395 <https://github.com/llvm/llvm-project/issues/67395>`_)
796 - Fixed a bug causing destructors of constant-evaluated structured bindings
797 initialized by array elements to be called in the wrong evaluation context.
799 - Fix crash where ill-formed code was being treated as a deduction guide and
800 we now produce a diagnostic. Fixes:
801 (`#65522 <https://github.com/llvm/llvm-project/issues/65522>`_)
803 - Fixed a bug where clang incorrectly considered implicitly generated deduction
804 guides from a non-templated constructor and a templated constructor as ambiguous,
805 rather than prefer the non-templated constructor as specified in
808 - Fixed a crash caused by incorrect handling of dependence on variable templates
809 with non-type template parameters of reference type. Fixes:
810 (`#65153 <https://github.com/llvm/llvm-project/issues/65153>`_)
812 - Clang now properly compares constraints on an out of line class template
813 declaration definition. Fixes:
814 (`#61763 <https://github.com/llvm/llvm-project/issues/61763>`_)
816 - Fix a bug where implicit deduction guides are not correctly generated for nested template
818 (`#46200 <https://github.com/llvm/llvm-project/issues/46200>`_)
819 (`#57812 <https://github.com/llvm/llvm-project/issues/57812>`_)
821 - Diagnose use of a variable-length array in a coroutine. The design of
822 coroutines is such that it is not possible to support VLA use. Fixes:
823 (`#65858 <https://github.com/llvm/llvm-project/issues/65858>`_)
825 - Fix bug where we were overriding zero-initialization of class members when
826 default initializing a base class in a constant expression context. Fixes:
827 (`#69890 <https://github.com/llvm/llvm-project/issues/69890>`_)
829 - Fix crash when template class static member imported to other translation unit.
831 (`#68769 <https://github.com/llvm/llvm-project/issues/68769>`_)
833 - Clang now rejects incomplete types for ``__builtin_dump_struct``. Fixes:
834 (`#63506 <https://github.com/llvm/llvm-project/issues/63506>`_)
836 - Fixed a crash for C++98/03 while checking an ill-formed ``_Static_assert`` expression.
837 Fixes: (`#72025 <https://github.com/llvm/llvm-project/issues/72025>`_)
839 - Clang now defers the instantiation of explicit specifier until constraint checking
840 completes (except deduction guides). Fixes:
841 (`#59827 <https://github.com/llvm/llvm-project/issues/59827>`_)
843 - Fix crash when parsing nested requirement. Fixes:
844 (`#73112 <https://github.com/llvm/llvm-project/issues/73112>`_)
846 Bug Fixes to AST Handling
847 ^^^^^^^^^^^^^^^^^^^^^^^^^
848 - Fixed an import failure of recursive friend class template.
849 `Issue 64169 <https://github.com/llvm/llvm-project/issues/64169>`_
850 - Remove unnecessary RecordLayout computation when importing UnaryOperator. The
851 computed RecordLayout is incorrect if fields are not completely imported and
852 should not be cached.
853 `Issue 64170 <https://github.com/llvm/llvm-project/issues/64170>`_
854 - Fixed ``hasAnyBase`` not binding nodes in its submatcher.
855 (`#65421 <https://github.com/llvm/llvm-project/issues/65421>`_)
856 - Fixed a bug where RecursiveASTVisitor fails to visit the
857 initializer of a bitfield.
858 `Issue 64916 <https://github.com/llvm/llvm-project/issues/64916>`_
860 Miscellaneous Bug Fixes
861 ^^^^^^^^^^^^^^^^^^^^^^^
863 Miscellaneous Clang Crashes Fixed
864 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
865 - Fixed a crash when parsing top-level ObjC blocks that aren't properly
866 terminated. Clang should now also recover better when an @end is missing
868 `Issue 64065 <https://github.com/llvm/llvm-project/issues/64065>`_
869 - Fixed a crash when check array access on zero-length element.
870 `Issue 64564 <https://github.com/llvm/llvm-project/issues/64564>`_
871 - Fixed a crash when an ObjC ivar has an invalid type. See
872 (`#68001 <https://github.com/llvm/llvm-project/pull/68001>`_)
873 - Fixed a crash in C when redefined struct is another nested redefinition.
874 `Issue 41302 <https://github.com/llvm/llvm-project/issues/41302>`_
875 - Fixed a crash when ``-ast-dump=json`` was used for code using class
876 template deduction guides.
877 - Fixed a crash when a lambda marked as ``static`` referenced a captured
878 variable in an expression.
879 `Issue 74608 <https://github.com/llvm/llvm-project/issues/74608>`_
882 OpenACC Specific Changes
883 ------------------------
884 - OpenACC Implementation effort is beginning with semantic analysis and parsing
885 of OpenACC pragmas. The ``-fopenacc`` flag was added to enable these new,
886 albeit incomplete changes. The ``_OPENACC`` macro is currently defined to
887 ``1``, as support is too incomplete to update to a standards-required value.
888 - Added ``-fexperimental-openacc-macro-override``, a command line option to
889 permit overriding the ``_OPENACC`` macro to be any digit-only value specified
890 by the user, which permits testing the compiler against existing OpenACC
891 workloads in order to evaluate implementation progress.
893 Target Specific Changes
894 -----------------------
898 - Use pass-by-reference (byref) in stead of pass-by-value (byval) for struct
899 arguments in C ABI. Callee is responsible for allocating stack memory and
900 copying the value of the struct if modified. Note that AMDGPU backend still
901 supports byval for struct arguments.
906 - Added option ``-m[no-]evex512`` to disable ZMM and 64-bit mask instructions
908 - Support ISA of ``USER_MSR``.
909 * Support intrinsic of ``_urdmsr``.
910 * Support intrinsic of ``_uwrmsr``.
911 - Support ISA of ``AVX10.1``.
912 - ``-march=pantherlake`` and ``-march=clearwaterforest`` are now supported.
914 Arm and AArch64 Support
915 ^^^^^^^^^^^^^^^^^^^^^^^
917 - C++ function name mangling has been changed to align with the specification
918 (https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst).
919 This affects C++ functions with SVE ACLE parameters. Clang will use the old
920 manglings if ``-fclang-abi-compat=17`` or lower is specified.
922 - New AArch64 asm constraints have been added for r8-r11(Uci) and r12-r15(Ucj).
924 - Support has been added for the following processors (-mcpu identifiers in parenthesis):
928 * Cortex-M52 (cortex-m52).
932 * Cortex-A520 (cortex-a520).
933 * Cortex-A720 (cortex-a720).
934 * Cortex-X4 (cortex-x4).
939 - Android target triples are usually suffixed with a version. Clang searches for
940 target-specific runtime and standard libraries in directories named after the
941 target (e.g. if you're building with ``--target=aarch64-none-linux-android21``,
942 Clang will look for ``lib/aarch64-none-linux-android21`` under its resource
943 directory to find runtime libraries). If an exact match isn't found, Clang
944 would previously fall back to a directory without any version (which would be
945 ``lib/aarch64-none-linux-android`` in our example). Clang will now look for
946 directories for lower versions and use the newest version it finds instead,
947 e.g. if you have ``lib/aarch64-none-linux-android21`` and
948 ``lib/aarch64-none-linux-android29``, ``-target aarch64-none-linux-android23``
949 will use the former and ``-target aarch64-none-linux-android30`` will use the
950 latter. Falling back to a versionless directory will now emit a warning, and
951 the fallback will be removed in Clang 19.
955 - Fixed an assertion failure that occurred due to a failure to propagate
956 ``MSInheritanceAttr`` attributes to class template instantiations created
957 for explicit template instantiation declarations.
959 - The ``-fno-auto-import`` option was added for MinGW targets. The option both
960 affects code generation (inhibiting generating indirection via ``.refptr``
961 stubs for potentially auto imported symbols, generating smaller and more
962 efficient code) and linking (making the linker error out on such cases).
963 If the option only is used during code generation but not when linking,
964 linking may succeed but the resulting executables may expose issues at
972 - Unaligned memory accesses can be toggled by ``-m[no-]unaligned-access`` or the
973 aliases ``-m[no-]strict-align``.
975 - Default ABI with F but without D was changed to ilp32f for RV32 and to lp64f
978 CUDA/HIP Language Changes
979 ^^^^^^^^^^^^^^^^^^^^^^^^^
984 - Clang now supports CUDA SDK up to 12.3
985 - Added support for sm_90a
990 - Introduced the ``-maix-small-local-exec-tls`` option to produce a faster
991 access sequence for local-exec TLS variables where the offset from the TLS
992 base is encoded as an immediate operand.
993 This access sequence is not used for TLS variables larger than 32KB, and is
994 currently only supported on 64-bit mode.
1002 DWARF Support in Clang
1003 ----------------------
1005 Floating Point Support in Clang
1006 -------------------------------
1007 - Add ``__builtin_elementwise_log`` builtin for floating point types only.
1008 - Add ``__builtin_elementwise_log10`` builtin for floating point types only.
1009 - Add ``__builtin_elementwise_log2`` builtin for floating point types only.
1010 - Add ``__builtin_elementwise_exp`` builtin for floating point types only.
1011 - Add ``__builtin_elementwise_exp2`` builtin for floating point types only.
1012 - Add ``__builtin_set_flt_rounds`` builtin for X86, x86_64, Arm and AArch64 only.
1013 - Add ``__builtin_elementwise_pow`` builtin for floating point types only.
1014 - Add ``__builtin_elementwise_bitreverse`` builtin for integer types only.
1015 - Add ``__builtin_elementwise_sqrt`` builtin for floating point types only.
1016 - ``__builtin_isfpclass`` builtin now supports vector types.
1017 - ``#pragma float_control(precise,on)`` enables precise floating-point
1018 semantics. If ``math-errno`` is disabled in the current TU, clang will
1019 re-enable ``math-errno`` in the presense of
1020 ``#pragma float_control(precise,on)``.
1021 - Add ``__builtin_exp10``, ``__builtin_exp10f``,
1022 ``__builtin_exp10f16``, ``__builtin_exp10l`` and
1023 ``__builtin_exp10f128`` builtins.
1024 - Add ``__builtin_iszero``, ``__builtin_issignaling`` and
1025 ``__builtin_issubnormal``.
1026 - Add support for C99's ``#pragma STDC CX_LIMITED_RANGE`` feature. This
1027 enables the naive mathematical formulas for complex multiplication and
1028 division, which are faster but do not correctly handle overflow and infinities.
1032 - Add ``convertVectorExpr``.
1033 - Add ``dependentSizedExtVectorType``.
1034 - Add ``macroQualifiedType``.
1038 - Add ``AllowBreakBeforeNoexceptSpecifier`` option.
1039 - Add ``AllowShortCompoundRequirementOnASingleLine`` option.
1040 - Change ``BreakAfterAttributes`` from ``Never`` to ``Leave`` in LLVM style.
1041 - Add ``BreakAdjacentStringLiterals`` option.
1042 - Add ``ObjCPropertyAttributeOrder`` which can be used to sort ObjC property
1043 attributes (like ``nonatomic, strong, nullable``).
1048 - Exposed arguments of ``clang::annotate``.
1049 - ``clang::getCursorKindForDecl`` now recognizes linkage specifications such as
1050 ``extern "C"`` and reports them as ``CXCursor_LinkageSpec``.
1055 - Added a new checker ``core.BitwiseShift`` which reports situations where
1056 bitwise shift operators produce undefined behavior (because some operand is
1057 negative or too large).
1059 - Move checker ``alpha.unix.Errno`` out of the ``alpha`` package
1062 - Move checker ``alpha.unix.StdCLibraryFunctions`` out of the ``alpha`` package
1063 to ``unix.StdCLibraryFunctions``.
1065 - Fix false positive in mutation check when using pointer to member function.
1066 (`#66204: <https://github.com/llvm/llvm-project/issues/66204>`_).
1068 - The ``alpha.security.taint.TaintPropagation`` checker no longer propagates
1069 taint on ``strlen`` and ``strnlen`` calls, unless these are marked
1070 explicitly propagators in the user-provided taint configuration file.
1071 This removal empirically reduces the number of false positive reports.
1072 Read the PR for the details.
1073 (`#66086 <https://github.com/llvm/llvm-project/pull/66086>`_)
1075 - A few crashes have been found and fixed using randomized testing related
1076 to the use of ``_BitInt()`` in tidy checks and in clang analysis. See
1077 `#67212 <https://github.com/llvm/llvm-project/pull/67212>`_,
1078 `#66782 <https://github.com/llvm/llvm-project/pull/66782>`_,
1079 `#65889 <https://github.com/llvm/llvm-project/pull/65889>`_,
1080 `#65888 <https://github.com/llvm/llvm-project/pull/65888>`_, and
1081 `#65887 <https://github.com/llvm/llvm-project/pull/65887>`_
1083 - Move checker ``alpha.cplusplus.EnumCastOutOfRange`` out of the ``alpha``
1084 package to ``optin.core.EnumCastOutOfRange``.
1086 .. _release-notes-sanitizers:
1091 - ``-fsanitize=signed-integer-overflow`` now instruments ``__builtin_abs`` and
1094 Python Binding Changes
1095 ----------------------
1097 Additional Information
1098 ======================
1100 A wide variety of additional information is available on the `Clang web
1101 page <https://clang.llvm.org/>`_. The web page contains versions of the
1102 API documentation which are up-to-date with the Git version of
1103 the source code. You can access versions of these documents specific to
1104 this release by going into the "``clang/docs/``" directory in the Clang
1107 If you have any questions or comments about Clang, please feel free to
1108 contact us on the `Discourse forums (Clang Frontend category)
1109 <https://discourse.llvm.org/c/clang/6>`_.