1 //===-- OptionValueArgs.cpp -----------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Interpreter/OptionValueArgs.h"
11 #include "lldb/Utility/Args.h"
14 using namespace lldb_private
;
16 size_t OptionValueArgs::GetArgs(Args
&args
) const {
18 for (const auto &value
: m_values
)
19 args
.AppendArgument(value
->GetValueAs
<llvm::StringRef
>().value_or(""));
20 return args
.GetArgumentCount();