This is an archive of the discontinued LLVM Phabricator instance.

[clang-tools-extra] Refactor to reduce code duplication
AcceptedPublic

Authored by prehistoric-penguin on Jul 27 2022, 8:59 PM.

Details

Summary

The two functions' bodies are almost the same, so I delegate them to a helper function for reducing.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 8:59 PM
prehistoric-penguin requested review of this revision.Jul 27 2022, 8:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 8:59 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Refine commit msg

avogelsgesang accepted this revision.Jul 28 2022, 2:47 AM

LGTM

(note that I am rather inexperienced with LLVM, though, so take my approval with a grain of salt)

This revision is now accepted and ready to land.Jul 28 2022, 2:47 AM