[clang] [clang][docs] Fix the __block import example in the Block ABI (PR #226626)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 19:23:23 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Andrei Iugai (mcmimik)
<details>
<summary>Changes</summary>
The helpers in this example passed `BLOCK_FIELD_IS_BYREF | BLOCK_BYREF_CALLER`, but clang passes only `BLOCK_FIELD_IS_BYREF` there, as the rest of the document says.
Also fixed the field names, the type of `forwarding`, the helpers of the `int` variable and a missing comma, to match what clang generates. Checked with `clang -cc1 -rewrite-objc -fblocks` from clang 3.0 on this example; current clang passes the same flag.
See also #<!-- -->90341.
Assisted-by: Claude
---
Full diff: https://github.com/llvm/llvm-project/pull/226626.diff
1 Files Affected:
- (modified) clang/docs/Block-ABI-Apple.md (+7-9)
``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````
</details>
https://github.com/llvm/llvm-project/pull/226626
More information about the cfe-commits
mailing list