[clang] [Clang] Permit noescape on non-pointer types (PR #117344)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 19:00:09 PST 2024
5chmidti wrote:
> whether `bugprone-no-escape` would want to see these changes or not.
The `bugprone-no-escape` check seems to be a bit limited because it only works with `dispatch_async` and `dispatch_after` (from Apple, it seems). It could probably be expanded to include some more async constructs, but adding support for other variable types looks like it would be a positive that would immediately work for the above functions. Only the diagnostic of the check would need to be adjusted a bit.
https://github.com/llvm/llvm-project/pull/117344
More information about the cfe-commits
mailing list