[PATCH] D51187: Thread safety analysis: Warn on double (un-)lock of scoped capability
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 23 15:04:44 PDT 2018
aaronpuchert created this revision.
aaronpuchert added reviewers: delesley, aaron.ballman.
Herald added a subscriber: cfe-commits.
We now warn when acquiring or releasing a scoped capability a second
time, not just if the underlying mutexes have been acquired or released
a second time. It's debatable whether that should really be a warning,
but there seem to be more advantages.
Repository:
rC Clang
https://reviews.llvm.org/D51187
Files:
lib/Analysis/ThreadSafety.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51187.162272.patch
Type: text/x-patch
Size: 5952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180823/20131e1f/attachment-0001.bin>
More information about the cfe-commits
mailing list