[clang] Thread Safety Analysis: Support attributes on function pointers (PR #191187)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 27 06:19:12 PDT 2026


================
@@ -14246,6 +14246,10 @@ class Sema final : public SemaBase {
   };
   typedef SmallVector<LateInstantiatedAttribute, 1> LateInstantiatedAttrVec;
 
+  /// Recheck instantiated thread-safety attributes that could not be validated
+  /// on the dependent pattern declaration.
+  bool checkInstantiatedThreadSafetyAttrs(Decl *D, const Attr *A);
----------------
AaronBallman wrote:

```suggestion
  bool checkInstantiatedThreadSafetyAttrs(const Decl *D, const Attr *A);
```

https://github.com/llvm/llvm-project/pull/191187


More information about the cfe-commits mailing list