[all-commits] [llvm/llvm-project] 16506d: [analyzer] StdLibraryFunctionsChecker: Add sanity ...

Gabor Marton via All-commits all-commits at lists.llvm.org
Fri May 29 07:39:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 16506d789084fd037fc61d442da43dd5242872b7
      https://github.com/llvm/llvm-project/commit/16506d789084fd037fc61d442da43dd5242872b7
  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

  Log Message:
  -----------
  [analyzer] StdLibraryFunctionsChecker: Add sanity checks for constraints

Summary:
Once we found a matching FunctionDecl for the given summary then we
validate the given constraints against that FunctionDecl. E.g. we
validate that a NotNull constraint is applied only on arguments that
have pointer types.

This is needed because when we matched the signature of the summary we
were working with incomplete function types, i.e. some intricate type
could have been marked as `Irrelevant` in the signature.

Reviewers: NoQ, Szelethus, balazske

Subscribers: whisperity, xazax.hun, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, gamesh411, Charusso, steakhal, ASDenysPetrov, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77658




More information about the All-commits mailing list