[PATCH] D85984: [analyzer] Add a new checker alpha.cplusplus.CPlusPlus11Lock
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 14 11:22:47 PDT 2020
ASDenysPetrov created this revision.
ASDenysPetrov added reviewers: NoQ, vsavchenko, xazax.hun, dcoughlin.
ASDenysPetrov added a project: clang.
Herald added subscribers: cfe-commits, steakhal, martong, Charusso, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware.
ASDenysPetrov requested review of this revision.
This checker is made above PthreadLockChecker and works the same. It is adapted for **std::mutex** primitive.
Next I want to add support **std::recursive_mutex**.
Repository:
rG LLVM Github Monorepo
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.285695.patch
Type: text/x-patch
Size: 26995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200814/1e8ace12/attachment-0001.bin>
More information about the cfe-commits
mailing list