[all-commits] [llvm/llvm-project] 43c514: [Clang] Deprecate `__is_trivially_relocatable` (#1...

cor3ntin via All-commits all-commits at lists.llvm.org
Wed May 7 13:24:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43c514bd42d3e12dd299c0a7165b3e079e9efd38
      https://github.com/llvm/llvm-project/commit/43c514bd42d3e12dd299c0a7165b3e079e9efd38
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-05-07 (Wed, 07 May 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/TokenKinds.def
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/test/SemaCXX/attr-trivial-abi.cpp
    M clang/test/SemaCXX/ptrauth-triviality.cpp
    M clang/test/SemaCXX/type-traits-nonobject.cpp

  Log Message:
  -----------
  [Clang] Deprecate `__is_trivially_relocatable` (#138835)

The C++26 standard relocatable type traits has slightly different
semantics, so we introduced a new
``__builtin_is_cpp_trivially_relocatable`` when implementing trivial
relocation in #127636.

However, having multiple relocatable traits would be confusing in the
long run, so we deprecate the old trait.

As discussed in #127636

`__builtin_is_cpp_trivially_relocatable` should be used instead.

---------

Co-authored-by: Aaron Ballman <aaron at aaronballman.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list