C++: Multi-Level Member Function Calls Not Modeled as DataFlow::Node #19457
Labels
awaiting-response
The CodeQL team is awaiting further input or clarification from the original reporter of this issue.
question
Further information is requested
Description of the issue
In my CodeQL analysis, I encountered an issue where multi-level function pointer calls are not modeled as DataFlow::Node.
Here is a minimal example to reproduce the issue:
Specifically, while I can find
getA()
modeled as aDataFlow::Node
withfindNodeforGetA
, I fail to find the corresponding node fordoSomething()
when searching withfindNodeforDoSomething
.Here is my query to find corresponding nodes:
So, is this desgned intentionally or due to some other reasons?
More Context:
By the way, my goal is to check the domination relationship between functions. For example, given the following code.
I want to check if
A::doSomething
dominatesdoSomethingElse
using the following query:The failure to find the corresponding
DataFlow::Node
fordoSomething()
prevents me from using thedefaultDominate
predicate to analyze the domination relationship.The text was updated successfully, but these errors were encountered: