[all-commits] [llvm/llvm-project] 536456: [analyzer] StdLibraryFunctionsChecker: Use platfor...

Gabor Marton via All-commits all-commits at lists.llvm.org
Thu Feb 13 04:56:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 536456a7e93d73b9ff4e92f3e51d1aa1c72628fe
      https://github.com/llvm/llvm-project/commit/536456a7e93d73b9ff4e92f3e51d1aa1c72628fe
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
    M clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
    A clang/test/Analysis/std-c-library-functions-eof.c

  Log Message:
  -----------
  [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax

Summary:
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.

Reviewers: Szelethus, NoQ

Subscribers: whisperity, xazax.hun, kristof.beyls, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalh

Tags: #clang

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




More information about the All-commits mailing list