llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[Clang] Improve __block attribute coverage for ivars and static variables

Open TPPPP72 opened this issue 6 months ago • 0 comments

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

TPPPP72 avatar May 12 '26 14:05 TPPPP72