[all-commits] [llvm/llvm-project] f96ea8: [APINotes] Document immortal reference type annota...

Egor Zhdan via All-commits all-commits at lists.llvm.org
Mon Nov 4 03:43:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f96ea8983b8edc941107c7df2e4f08b44a1663d0
      https://github.com/llvm/llvm-project/commit/f96ea8983b8edc941107c7df2e4f08b44a1663d0
  Author: Egor Zhdan <e_zhdan at apple.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M clang/docs/APINotes.rst

  Log Message:
  -----------
  [APINotes] Document immortal reference type annotation

API Notes allow annotating a C++ reference type with its retain/release
operations. These are honored by the Swift compiler when the type is
used from Swift. Apart from names of C++ functions that need to be
called to retain/release the object, API Notes also accept a value of
`immortal` which indicates that the object is to be considered alive for
the duration of the program.



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