[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 23 04:41:36 PDT 2018
aaronpuchert added a comment.
Ping? The functional changes should be minimal.
================
Comment at: test/SemaCXX/warn-thread-safety-analysis.cpp:38-39
#endif
+#define EXCLUSIVE_UNLOCK_FUNCTION(...) __attribute__((release_capability(__VA_ARGS__)))
+#define SHARED_UNLOCK_FUNCTION(...) __attribute__((release_shared_capability(__VA_ARGS__)))
#define UNLOCK_FUNCTION(...) __attribute__((unlock_function(__VA_ARGS__)))
----------------
This was necessary to make sure we produce warnings of the kind `releasing mutex '...' using exclusive access, expected shared access` for both configurations.
Repository:
rC Clang
https://reviews.llvm.org/D49355
More information about the cfe-commits
mailing list