[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
Author: Balázs Kéri <1.int32 at gmail.com>
Date: 2022-06-23 (Thu, 23 Jun 2022)
[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