[PATCH] D152504: [clang][ThreadSafety] Analyze cleanup functions

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 27 07:29:30 PDT 2023


tbaeder marked 2 inline comments as done.
tbaeder added inline comments.


================
Comment at: clang/test/Sema/warn-thread-safety-analysis.c:76-77
 
+void cleanup_int(int *unused) __attribute__((release_capability(mu1))) {
+  (void)unused;
+  mutex_exclusive_unlock(&mu1);
----------------
aaronpuchert wrote:
> 
> omitting the parameter name in a function definition is a C2x extension


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152504/new/

https://reviews.llvm.org/D152504



More information about the cfe-commits mailing list