This is an archive of the discontinued LLVM Phabricator instance.

[clang][NFC] Refactor emitSnippet()
ClosedPublic

Authored by tbaeder on May 17 2023, 10:33 PM.

Details

Summary

Rename parameters and local variables and reorder things a bit to be closer to their first point of use.
This doesn't change anything else.

Diff Detail

Event Timeline

tbaeder created this revision.May 17 2023, 10:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 10:33 PM
tbaeder requested review of this revision.May 17 2023, 10:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 10:33 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Side-note: The ToPrint stuff here is just useful to "cache" the output string, isn't it? Is that really useful? I'd expect the output stream to be cached anyway?

aaron.ballman accepted this revision.May 22 2023, 4:59 AM

Side-note: The ToPrint stuff here is just useful to "cache" the output string, isn't it? Is that really useful? I'd expect the output stream to be cached anyway?

Yeah, that does seem like a kind of caching operation, I'm not certain what it's purpose is though.

LGTM!

This revision is now accepted and ready to land.May 22 2023, 4:59 AM
This revision was landed with ongoing or failed builds.May 31 2023, 12:21 AM
This revision was automatically updated to reflect the committed changes.