[clang] [analyzer] performTrivialCopy triggers checkLocation before binding (PR #129016)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 06:19:26 PST 2025


================
@@ -27,6 +29,14 @@ void emitErrorReport(CheckerContext &C, const BugType &Bug,
   }
 }
 
+inline std::string getMemRegionName(const SVal &Val) {
----------------
steakhal wrote:

```suggestion
static std::string getMemRegionName(SVal Val) {
```

Have you considered using the Val.dump instead of rolling out something custom like this?

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


More information about the cfe-commits mailing list