blob: eaff5662991449e29b9b5981cd2fb731296c768a [file] [log] [blame]
// Copyright 2012 The Goma Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVTOOLS_GOMA_LIB_CMDLINE_PARSER_H_
#define DEVTOOLS_GOMA_LIB_CMDLINE_PARSER_H_
#include <string>
#include <vector>
#include "absl/strings/string_view.h"
using std::string;
namespace devtools_goma {
// Parsing Command-Line Arguments (on posix for gcc, javac)
// Note: parsed |cmdline| will be appended to argv.
bool ParsePosixCommandLineToArgv(absl::string_view cmdline,
std::vector<string>* argv);
// Parsing Command-Line Arguments (on Windows)
// Note: parsed |cmdline| will be appended to argv.
bool ParseWinCommandLineToArgv(absl::string_view cmdline,
std::vector<string>* argv);
} // namespace devtools_goma
#endif // DEVTOOLS_GOMA_LIB_CMDLINE_PARSER_H_