================ @@ -105,9 +105,6 @@ void errno_getcwd(char *Buf, size_t Sz) { clang_analyzer_eval(errno != 0); // expected-warning{{TRUE}} clang_analyzer_eval(Path == NULL); // expected-warning{{TRUE}} if (errno) {} // no warning - } else if (Path == NULL) { - clang_analyzer_eval(errno != 0); // expected-warning{{TRUE}} - if (errno) {} // no warning ---------------- balazske wrote:
The correct fix would be probably to add `ArgumentCondition`s for the parameter 0 to be non-null in the existing "Case"-s, and add extra cases for the `buf == NULL` condition (where `size` is ignored but the return value can be still NULL on error or non-NULL on success). https://github.com/llvm/llvm-project/pull/135720 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits