1 //===-- OptionValueArgs.cpp -------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #include "lldb/Interpreter/OptionValueArgs.h" 11 12 // C Includes 13 // C++ Includes 14 // Other libraries and framework includes 15 // Project includes 16 #include "lldb/Interpreter/Args.h" 17 18 using namespace lldb; 19 using namespace lldb_private; 20 21 size_t OptionValueArgs::GetArgs(Args &args) { 22 args.Clear(); 23 for (auto value : m_values) { 24 llvm::StringRef string_value = value->GetStringValue(); 25 if (!string_value.empty()) 26 args.AppendArgument(string_value); 27 } 28 29 return args.GetArgumentCount(); 30 } 31