[PATCH] D86531: [analyzer][StdLibraryFunctionsChecker] Use Optionals throughout the summary API

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 05:06:24 PDT 2020


martong created this revision.
martong added reviewers: balazske, vsavchenko.
Herald added subscribers: cfe-commits, ASDenysPetrov, steakhal, Charusso, gamesh411, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun, whisperity.
Herald added a reviewer: Szelethus.
Herald added a project: clang.
martong requested review of this revision.

By using optionals, we no longer have to check the validity of types that we
get from a lookup. This way, the definition of the summaries have a declarative
form, there are no superflous conditions in the source code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86531

Files:
  clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
  clang/test/Analysis/std-c-library-functions-POSIX-lookup.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86531.287634.patch
Type: text/x-patch
Size: 72270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200825/0d66cbf3/attachment-0001.bin>


More information about the cfe-commits mailing list