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
x/tools/go/cfg: add CFG.Dot method #65754
Comments
It may be more flexible to have a |
CFG already has a Format method that doesn't take an enum. |
Let's call it dot to match pprof's -dot flag. Otherwise seems fine. |
This proposal has been added to the active column of the proposals project |
Based on the discussion above, this proposal seems like a likely accept. The proposal is to add:
|
No change in consensus, so accepted. 🎉 The proposal is to add:
|
Change https://go.dev/cl/572016 mentions this issue: |
Proposal Details
The golang.org/x/tools/go/cfg.CFG type, which represents a syntactic control-flow graph, has an unexported method that renders the graph in AT&T graphviz format, which I have found useful for debugging.
I propose to export it:
The text was updated successfully, but these errors were encountered: