Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/docs/ReleaseNotes.rst
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | - ``__declspec`` attributes can now be used together with the using keyword. Before | ||||
point where the alias is used. | point where the alias is used. | ||||
- Introduced a new ``USR`` (unified symbol resolution) clause inside of the | - Introduced a new ``USR`` (unified symbol resolution) clause inside of the | ||||
existing ``__attribute__((external_source_symbol))`` attribute. Clang's indexer | existing ``__attribute__((external_source_symbol))`` attribute. Clang's indexer | ||||
uses the optional USR value when indexing Clang's AST. This value is expected | uses the optional USR value when indexing Clang's AST. This value is expected | ||||
to be generated by an external compiler when generating C++ bindings during | to be generated by an external compiler when generating C++ bindings during | ||||
the compilation of the foreign language sources (e.g. Swift). | the compilation of the foreign language sources (e.g. Swift). | ||||
- The ``__has_attribute``, ``__has_c_attribute`` and ``__has_cpp_attribute`` | - The ``__has_attribute``, ``__has_c_attribute`` and ``__has_cpp_attribute`` | ||||
preprocessor operators now return 1 also for attributes defined by plugins. | preprocessor operators now return 1 also for attributes defined by plugins. | ||||
- Introduced a new function attribute ``__attribute__((debug_trampoline))`` | |||||
which is intended as a hint to debuggers that they should not stop at the annotated | |||||
function, but instead step through it when stepping in, and continuing directly to | |||||
its caller when stepping out. | |||||
Improvements to Clang's diagnostics | Improvements to Clang's diagnostics | ||||
----------------------------------- | ----------------------------------- | ||||
- We now generate a diagnostic for signed integer overflow due to unary minus | - We now generate a diagnostic for signed integer overflow due to unary minus | ||||
in a non-constant expression context. | in a non-constant expression context. | ||||
(`#31643 <https://github.com/llvm/llvm-project/issues/31643>`_) | (`#31643 <https://github.com/llvm/llvm-project/issues/31643>`_) | ||||
- Clang now warns by default for C++20 and later about deprecated capture of | - Clang now warns by default for C++20 and later about deprecated capture of | ||||
``this`` with a capture default of ``=``. This warning can be disabled with | ``this`` with a capture default of ``=``. This warning can be disabled with | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |