NoQ added a comment.

In any case, every checker is allowed to make their own decisions about 
escaping. Escape on its own is not material, it's all about how the checker 
reacts to escapes. Say, it's up to MallocChecker to decide whether the function 
may or may not release memory that escapes on call.
I think a valid approach would be to simply look up the function in your 
`CallDescriptionMap` and then abort the `checkPointerEscape` callback when it's 
found.

Yet, it annoys me a bit that we didn't make everything magically work in an 
"out of the box" manner. Can we eliminate the first pointer escape (that 
happens before PostCall) but only keep the secondary escape?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71224/new/

https://reviews.llvm.org/D71224



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to