[PATCH] D85984: [analyzer] Add a new checker alpha.cplusplus.CPlusPlus11Lock
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 14:51:08 PST 2020
ASDenysPetrov updated this revision to Diff 308781.
ASDenysPetrov added a comment.
@NoQ , considered your suggestions about the case of recursive mutexes. Implemented this feature. Now this works like below:
recursive_mutex rm;
rm.lock();
rm.lock(); // no-warning
recursive_timed_mutex rtm;
rtm.lock();
rtm.lock(); // no-warning
Please look.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85984/new/
https://reviews.llvm.org/D85984
Files:
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
clang/test/Analysis/Checkers/CPlusPlus11LockChecker.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85984.308781.patch
Type: text/x-patch
Size: 49878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201201/7ba3b5e2/attachment-0001.bin>
More information about the cfe-commits
mailing list