github / github/codeql

How to make a call graph for a function in C/C++?

Open
#8,376 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

I'm looking forward to writing a query which will deliver a call graph for a given function.
Preferably a call **graph** (a picture or similar graphic representation), but if that is
not possible, at least a chain of possible calls.

I already checked the CodeQL documentation and it seems like there is more information
for Java, and I'm not capable of getting a call graph with this C++ module:
https://codeql.github.com/codeql-standard-libraries/cpp/semmle/code/cpp/pointsto/CallGraph.qll/module.CallGraph.html

I would appreciate any guidance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.