This is an archive of the discontinued LLVM Phabricator instance.

[clang] Add no-argument dump to DynTypedNode
Needs ReviewPublic

Authored by ccotter on Jan 11 2023, 11:44 PM.

Details

Reviewers
njames93
Summary

Provide a no-argument dump methods to avoid having to do
additional gymnastics to dump a DynTypedNode.

Diff Detail

Event Timeline

ccotter created this revision.Jan 11 2023, 11:44 PM
Herald added a project: Restricted Project. · View Herald Transcript
ccotter requested review of this revision.Jan 11 2023, 11:44 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 11 2023, 11:44 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ccotter updated this revision to Diff 488495.Jan 11 2023, 11:45 PM

remove accidental change

I usually use dump() when authoring/debugging clang-tidy or similar checks. I don't always have ASTContext handy when working with a DynTypedNode (without temporarily changing my call stack to pass the ASTContext around for the purposes of dump).

I put up this as a way of asking whether this kind of change would be considered (just as easy to code this up as ask in Discord etc). Thoughts?