[PATCH] D132249: [clang][analyzer] Add some functions to StreamChecker with errno modeling.

Balázs Kéri via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 19 09:11:00 PDT 2022


balazske created this revision.
Herald added subscribers: steakhal, manas, ASDenysPetrov, martong, gamesh411, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Herald added a reviewer: Szelethus.
Herald added a reviewer: NoQ.
Herald added a project: All.
balazske requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Functions `fsetpos`, `fgetpos`, `ftell`, `rewind` are added.
Function `fileno` is handled by `StdLibraryFunctionsChecker` too,
tests are added for it but eval function is not needed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132249

Files:
  clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.cpp
  clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.h
  clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
  clang/test/Analysis/stream-errno-note.c
  clang/test/Analysis/stream-errno.c
  clang/test/Analysis/stream-error.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132249.454042.patch
Type: text/x-patch
Size: 15940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220819/fa243733/attachment-0001.bin>


More information about the cfe-commits mailing list