[clang] Thread Safety Analysis: Support attributes on function pointers (PR #191187)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 15:39:58 PDT 2026
https://github.com/aaronpuchert commented:
I'm a little bit worried that we're working around the fact that the attributes should be type attributes by allowing placement on different kinds of declarations that incorporate a function type, instead of making them an attribute on the function type themselves.
However, my reading of the C/C++ standard syntax for attributes is that an attribute in this position would be a function type attribute, so at least we wouldn't make it impossible to migrate to type attributes in the long term. That would be my greatest worry.
https://github.com/llvm/llvm-project/pull/191187
More information about the cfe-commits
mailing list