[PATCH] D74473: [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax
Gabor Marton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 02:51:54 PST 2020
martong created this revision.
martong added reviewers: Szelethus, NoQ.
Herald added subscribers: cfe-commits, steakhal, Charusso, gamesh411, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, kristof.beyls, xazax.hun, whisperity.
Herald added a project: clang.
martong added a child revision: D73898: [analyzer] StdLibraryFunctionsChecker: Add argument constraints.
Both EOF and the max value of unsigned char is platform dependent. In this
patch we try our best to deduce the value of EOF from the Preprocessor,
if we can't we fall back to -1.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74473
Files:
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
clang/test/Analysis/std-c-library-functions-eof.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74473.244112.patch
Type: text/x-patch
Size: 10984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200212/db3c4cde/attachment.bin>
More information about the cfe-commits
mailing list