[clang] [clang][analyzer] Correctly handle lambda-converted function pointers (PR #144906)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 19 17:19:18 PDT 2025
flovent wrote:
> I only have one question. Have you considered overriding some other `getRuntimeDefinition` too? When I'm looking at the [CallEvent ](https://clang.llvm.org/doxygen/classclang_1_1ento_1_1CallEvent.html) inheritance graph, there could be a couple other options too. Don't get me wrong, the `SimpleFunctionCall::getRuntimeDefinition` looks like the right place. I'm just curious.
As far as i know, `__invoke` will always be a normal static member method for lambda, and static member method will be modeled as `SimpleFunctionCall` in analyzer, other derived classes of same level seems to for memory-allocation related (`CXXAllocatorCall`, `CXXDeallocatorCall`), or class-instance related (`AnyCXXConstructorCall`, `CXXInstanceCall`)
https://github.com/llvm/llvm-project/pull/144906
More information about the cfe-commits
mailing list