-
Notifications
You must be signed in to change notification settings - Fork 10
[CGQuery] CLI tool for call graph analyses #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
pearzt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for tackling this! Looks like a good basis for cgquery.
tools/cgquery/CGQuery.cpp
Outdated
|
|
||
|
|
||
|
|
||
| auto* sourceNode = cg->getFirstNode(result["source"].as<std::string>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since nodes are not uniquely identified by name, I think we should at the very least output a warning if the name provided by the user is ambiguous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. CGQuery now warns when a function name is not unique and matches multiple nodes. Additionally, CGQuery now interprets strings of integers as node IDs to improve usability with v4 format.
1658f33 to
d692f5b
Compare
Co-authored-by: Peter Arzt <peter.arzt@tu-darmstadt.de>
CGQuery is a command-line tool to perform various analyses on Metacg call graphs.
Additional analyses will be added in separate PRs.