[all-commits] [llvm/llvm-project] a787a4: [analyzer][StdLibraryFunctionsChecker] Use Optiona...

Gabor Marton via All-commits all-commits at lists.llvm.org
Tue Sep 1 02:37:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a787a4ed16d6867f56d81159a8fcf2b711d18a8a
      https://github.com/llvm/llvm-project/commit/a787a4ed16d6867f56d81159a8fcf2b711d18a8a
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2020-09-01 (Tue, 01 Sep 2020)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
    A clang/test/Analysis/std-c-library-functions-POSIX-lookup.c

  Log Message:
  -----------
  [analyzer][StdLibraryFunctionsChecker] Use Optionals throughout the summary API

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.

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




More information about the All-commits mailing list