This is an archive of the discontinued LLVM Phabricator instance.

[CommandLine} Wire-up cl::list::setDefault() so it will work correctly with cl::ResetAllOptionOccurrences() in unittests. Part 2 of 5
ClosedPublic

Authored by hintonda on Apr 27 2019, 2:04 PM.

Details

Summary

With this change, cl::ResetAllOptionOccurrences() clears
cl::list just like cl::opt, allowing users to call
cl::ParseCommandLineOptions() multiple times without interference from
previous calls.

Diff Detail

Repository
rL LLVM

Event Timeline

hintonda created this revision.Apr 27 2019, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 27 2019, 2:04 PM
hintonda retitled this revision from [CommandLine} Wire-up cl::list::setDefault() so it will work correctly with cl::ResetAllOptionOccurrences() in unittests. to [CommandLine} Wire-up cl::list::setDefault() so it will work correctly with cl::ResetAllOptionOccurrences() in unittests. Part 2 of 5.Apr 29 2019, 10:41 AM
rnk accepted this revision.Apr 29 2019, 2:30 PM

lgtm

This revision is now accepted and ready to land.Apr 29 2019, 2:30 PM
This revision was automatically updated to reflect the committed changes.