[PATCH] D72705: [analyzer] Added new checker 'alpha.unix.ErrorReturn'.

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 08:27:30 PST 2020


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

Adding a simplified version.

- The check is only for "EOFOrNegative" case.
- Long list of functions is removed.
- Not checking for "access in condition".
- Removed the warning if value is unused.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72705

Files:
  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: D72705.243178.patch
Type: text/x-patch
Size: 22605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200207/fc66e1bd/attachment-0001.bin>


More information about the cfe-commits mailing list