[PATCH] D66627: [clang-tidy] new check: bugprone-pthread-return
Jian Cai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 17:58:09 PDT 2019
jcai19 created this revision.
Herald added subscribers: cfe-commits, jfb, xazax.hun, mgorny.
Herald added a project: clang.
Checks if any calls to POSIX pthread functions expect negative return values.
These functions return either 0 on success or an errno on failure, which is
positive only.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66627
Files:
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/clang-tidy/bugprone/PthreadReturnCheck.cpp
clang-tools-extra/clang-tidy/bugprone/PthreadReturnCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-pthread-return.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/bugprone-pthread-return.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66627.216748.patch
Type: text/x-patch
Size: 18322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190823/25ac6519/attachment-0001.bin>
More information about the cfe-commits
mailing list