Skip to content

Is there any way to build call graph path? #7531

Answered by intrigus-lgtm
ox1234 asked this question in Q&A
Discussion options

You must be logged in to vote

Have a look at this discussion: #5353 (comment)
Also look at the additional comments from @Marcono1234.

I think this is what you want :)

(Quote from the above discussion also copied and pasted below)

Yes, this is possible!

The site you linked to mentions it here and here although it's easy too miss or easy to underestimate its potential.

When you use taint or data-flow the edges predicate is defined by the PathGraph module. But you can also define your own edges query-predicate.

A self-defined query-predicate is used in @agustingianni's blog post. It's relatively easy to port the code to "Java CodeQL".

Here's my code that only creates a path for methods itself and not for the (control fl…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ox1234
Comment options

Comment options

You must be logged in to vote
2 replies
@ox1234
Comment options

@Manouchehri
Comment options

Answer selected by ox1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants