[clang] [analyzer] Model strchr/strrchr/memchr/strstr/strpbrk/strchrnul (PR #207267)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 06:55:07 PDT 2026
================
@@ -2617,6 +2639,54 @@ void CStringChecker::evalStrsep(CheckerContext &C,
C.addTransition(State);
}
+void CStringChecker::evalStrchrCommon(CheckerContext &C, const CallEvent &Call,
+ StringRef FnName,
+ bool CanReturnNull) const {
+ CurrentFunctionDescription = FnName;
+ ProgramStateRef State = C.getState();
----------------
steakhal wrote:
Moved some in 0509a8ff9ae3bcf293e54aab8493611ceeed5cb4
https://github.com/llvm/llvm-project/pull/207267
More information about the cfe-commits
mailing list