[all-commits] [llvm/llvm-project] 7dc81c: [clang][analyzer] Fix StdLibraryFunctionsChecker '...

Balázs Kéri via All-commits all-commits at lists.llvm.org
Thu Jun 23 02:29:08 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7dc81c624433627e6811801b5a7e53d77c216616
  Author: Balázs Kéri <1.int32 at gmail.com>
  Date:   2022-06-23 (Thu, 23 Jun 2022)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

  Log Message:
  [clang][analyzer] Fix StdLibraryFunctionsChecker 'mkdir' return value.

The functions 'mkdir', 'mknod', 'mkdirat', 'mknodat' return 0 on success
and -1 on failure. The checker modeled these functions with a >= 0
return value on success which is changed to 0 only. This fix makes
ErrnoChecker work better for these functions.

Reviewed By: steakhal

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

More information about the All-commits mailing list