DonatNagyE wrote:

In fact, as I think about this, I realized that it's probably a bad idea to 
perform "initialization" for each `va_list` variable in a 
`check::PreStmt<DeclStmt>` callback -- e.g. because in theory the programmer 
could write code like
```
void f(int fst, ...) {
  va_list *pva = (va_list *)malloc(sizeof(va_list));
  va_start(*pva, fst);
  /* use and release the va_list */
  free(pva);
}
```



https://github.com/llvm/llvm-project/pull/72951
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to