[clang] [clang][analyzer] Model more getline/getdelim pre and postconditions (PR #83027)
Alejandro Álvarez Ayllón via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 11 08:11:11 PDT 2024
================
@@ -1158,6 +1173,118 @@ void StreamChecker::evalUngetc(const FnDescription *Desc, const CallEvent &Call,
C.addTransition(StateFailed);
}
+ProgramStateRef
+StreamChecker::ensurePtrNotNull(SVal PtrVal, const Expr *PtrExpr,
+ CheckerContext &C, ProgramStateRef State,
+ const StringRef PtrDescr) const {
----------------
alejandro-alvarez-sonarsource wrote:
`ensureStreamNonNull` now calls `ensurePtrNotNull`, so the logic is shared.
https://github.com/llvm/llvm-project/pull/83027
More information about the cfe-commits
mailing list