[all-commits] [llvm/llvm-project] 634258: [analyzer] StdLibraryFunctionsChecker: Add support...
Gabor Marton via All-commits
all-commits at lists.llvm.org
Fri May 29 08:59:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 634258b80606c4bb8192077239a089ae5842781a
https://github.com/llvm/llvm-project/commit/634258b80606c4bb8192077239a089ae5842781a
Author: Gabor Marton <gabor.marton at ericsson.com>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
M clang/test/Analysis/std-c-library-functions-arg-constraints.c
A clang/test/Analysis/std-c-library-functions-lookup.c
A clang/test/Analysis/std-c-library-functions-lookup.cpp
M clang/test/Analysis/std-c-library-functions.c
Log Message:
-----------
[analyzer] StdLibraryFunctionsChecker: Add support to lookup types
Summary:
In this patch I am trying to get rid of the `Irrelevant` types from the
signatures of the functions from the standard C library. For that I've
introduced `lookupType()` to be able to lookup arbitrary types in the global
scope. This makes it possible to define the signatures precisely.
Note 1) `fread`'s signature is now fixed to have the proper `FILE *restrict`
type when C99 is the language.
Note 2) There are still existing `Irrelevant` types, but they are all from
POSIX. I am planning to address those together with the missing POSIX functions
(in D79433).
Reviewers: xazax.hun, NoQ, Szelethus, balazske
Subscribers: whisperity, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, gamesh411, Charusso, steakhal, ASDenysPetrov, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D80016
More information about the All-commits
mailing list