mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 13:36:08 +00:00

Make the `Get.*Value` and `Set.*Value` function private and migrate the last remaining call sites to the new overloaded/templated functions.
22 lines
719 B
C++
22 lines
719 B
C++
//===-- OptionValueArgs.cpp -----------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lldb/Interpreter/OptionValueArgs.h"
|
|
|
|
#include "lldb/Utility/Args.h"
|
|
|
|
using namespace lldb;
|
|
using namespace lldb_private;
|
|
|
|
size_t OptionValueArgs::GetArgs(Args &args) const {
|
|
args.Clear();
|
|
for (const auto &value : m_values)
|
|
args.AppendArgument(value->GetValueAs<llvm::StringRef>().value_or(""));
|
|
return args.GetArgumentCount();
|
|
}
|