Skip to content

Conversation

@silas-martens
Copy link
Contributor

CGQuery is a command-line tool to perform various analyses on Metacg call graphs.

Additional analyses will be added in separate PRs.

Copy link
Member

@pearzt pearzt left a 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.




auto* sourceNode = cg->getFirstNode(result["source"].as<std::string>());
Copy link
Member

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.

Copy link
Contributor Author

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.

silas-martens and others added 2 commits December 25, 2025 02:40
Co-authored-by: Peter Arzt <peter.arzt@tu-darmstadt.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants