[PATCH] D71510: [clang][checkers] Added new checker 'error-return-checker'. (WIP)

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 9 06:27:47 PST 2020


balazske updated this revision to Diff 237053.
balazske added a comment.

- Prevent warning if call is in a return statement.
- Prevent warning if call is casted to void.
- Added documentation.
- Fixed the tests.
- Some other fixes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71510/new/

https://reviews.llvm.org/D71510

Files:
  clang/docs/analyzer/checkers.rst
  clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
  clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
  clang/lib/StaticAnalyzer/Checkers/ErrorReturnChecker.cpp
  clang/test/Analysis/Inputs/system-header-simulator.h
  clang/test/Analysis/error-return.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71510.237053.patch
Type: text/x-patch
Size: 60472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200109/46358ddf/attachment-0001.bin>


More information about the cfe-commits mailing list