llvm-project
llvm-project copied to clipboard
[Clang] Improve __block attribute coverage for ivars and static variables
Description
As discussed in #194856, we need to improve the diagnostic coverage for the __block attribute. Currently, clang/test/Sema/block-misc.c and related tests lack coverage for the following cases:
- Objective-C ivars
- Local static variables
- C++ static data members
I am opening this issue as a tracker/todo list to ensure these cases are properly diagnosed and tested in a follow-up PR.
CC @AaronBallman @ahatanak