[all-commits] [llvm/llvm-project] fbfd2c: [coroutines] Introduce [[clang::coro_lifetimebound...

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Wed Nov 22 03:51:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbfd2c9972695bc74a646bfa5e3e2d00477dabe2
      https://github.com/llvm/llvm-project/commit/fbfd2c9972695bc74a646bfa5e3e2d00477dabe2
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2023-11-22 (Wed, 22 Nov 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/SemaCXX/coro-lifetimebound.cpp

  Log Message:
  -----------
  [coroutines] Introduce [[clang::coro_lifetimebound]] (#72851)

Adds attribute `[[clang::coro_lifetimebound]]`.

All arguments to a function are considered to be **lifetime bound** if
the function
returns a type annotated with ``[[clang::coro_lifetimebound]]`` and
``[[clang::coro_return_type]]``.




More information about the All-commits mailing list