Skip to content

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

@TPPPP72

Description

@TPPPP72

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions