summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/bugprone/PosixReturnCheck.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] add checks to bugprone-posix-returnJian Cai2019-09-161-15/+20
| | | | | | This check now also checks if any calls to pthread_* functions expect negative return values. These functions return either 0 on success or an errno on failure, which is positive only. llvm-svn: 372037
* [clang-tidy] new check: bugprone-posix-returnDmitri Gribenko2019-07-031-0/+82
Summary: Checks if any calls to posix functions (except posix_openpt) expect negative return values. These functions return either 0 on success or an errno on failure, which is positive only. Reviewers: JonasToth, gribozavr, alexfh, hokein Reviewed By: gribozavr Subscribers: Eugene.Zelenko, lebedev.ri, llozano, george.burgess.iv, xazax.hun, srhines, mgorny, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63623 Patch by Jian Cai. llvm-svn: 365007
OpenPOWER on IntegriCloud