This is an archive of the discontinued LLVM Phabricator instance.

[clang] Pull some utility functions into CompilerInvocation NFC
ClosedPublic

Authored by benlangmuir on Aug 22 2022, 3:52 PM.

Details

Summary

Move copying compiler arguments to a vector<string> and modifying
common module-related options into CompilerInvocation in preparation for
using some of them in more places and to avoid duplicating this code
accidentally in the future.

Diff Detail

Event Timeline

benlangmuir created this revision.Aug 22 2022, 3:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2022, 3:52 PM
benlangmuir requested review of this revision.Aug 22 2022, 3:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2022, 3:52 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 accepted this revision.Aug 22 2022, 4:15 PM

LGMT! Nice cleanup.

This revision is now accepted and ready to land.Aug 22 2022, 4:15 PM