]> granicus.if.org Git - llvm/commit
[CommandLine} Wire-up cl::list::setDefault() so it will work correctly with cl::Reset...
authorDon Hinton <hintonda@gmail.com>
Tue, 30 Apr 2019 00:09:49 +0000 (00:09 +0000)
committerDon Hinton <hintonda@gmail.com>
Tue, 30 Apr 2019 00:09:49 +0000 (00:09 +0000)
commiteb132e02b354305f8f2a6a28e42316a2158f8264
tree970e5efb7687e430494f79d50d16639ba32d266f
parent9a1c76870e4143c86be6bfe1a89b5240860672cb
[CommandLine} Wire-up cl::list::setDefault() so it will work correctly with cl::ResetAllOptionOccurrences() in unittests.  Part 2 of 5

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.

Reviewers: rnk

Reviewed By: rnk

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61234

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359522 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
unittests/Support/CommandLineTest.cpp