[clang] [clang][analyzer] Model more wide-character versions of string functions (PR #113908)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 00:59:10 PDT 2024


================
@@ -2524,8 +2625,33 @@ void CStringChecker::evalStdCopyCommon(CheckerContext &C,
   C.addTransition(State);
 }
 
-void CStringChecker::evalMemset(CheckerContext &C,
-                                const CallEvent &Call) const {
+namespace {
+CharUnits getSizeOfUnit(CharKind CK, CheckerContext &C) {
----------------
steakhal wrote:

```suggestion
static CharUnits getSizeOfUnit(CharKind CK, CheckerContext &C) {
```

https://github.com/llvm/llvm-project/pull/113908


More information about the cfe-commits mailing list