Home
last modified time | relevance | path

Searched refs:CmdlineParseResult (Results 1 – 7 of 7) sorted by relevance

/art/cmdline/
Dcmdline_parse_result.h30 struct CmdlineParseResult : CmdlineResult { struct
34 static CmdlineParseResult Usage(const std::string& message) { in Usage() argument
35 return CmdlineParseResult(kUsage, message); in Usage()
39 static CmdlineParseResult<T> Failure() { in Failure() argument
40 return CmdlineParseResult(kFailure); in Failure()
44 static CmdlineParseResult<T> Failure(const std::string& message) { in Failure() argument
45 return CmdlineParseResult(kFailure, message); in Failure()
49 static CmdlineParseResult<T> Success(const T& value) { in Success() argument
50 return CmdlineParseResult(value); in Success()
54 static CmdlineParseResult<T> Success(T&& value) { in Success() argument
[all …]
Dcmdline_types.h229 static inline CmdlineParseResult<T> ParseNumeric(const std::string& str) {
241 return CmdlineParseResult<T>::Failure("Failed to parse integer from " + str);
244 return CmdlineParseResult<T>::OutOfRange(
248 return CmdlineParseResult<T>::Success(static_cast<T>(result));
324 CmdlineParseResult<unsigned int> res = uint_parser.Parse(str);
477 using Result = CmdlineParseResult<ParseStringList<Separator>>;
495 using Result = CmdlineParseResult<ParseIntList<Separator>>;
759 using Result = CmdlineParseResult<ProfileSaverOptions>;
762 using StringResult = CmdlineParseResult<std::string>;
763 using DoubleResult = CmdlineParseResult<double>;
[all …]
Dcmdline_type_parser.h31 using Result = CmdlineParseResult<T>;
Dcmdline_parser_test.cc585CmdlineParseResult<ParseCommaSeparatedIntList>::Success(ParseCommaSeparatedIntList({1, 2, 3, 4})); in TEST_F()
588 CmdlineParseResult<ParseCommaSeparatedIntList>::Success(ParseCommaSeparatedIntList({0})); in TEST_F()
DREADME.md231 `Result` is a typedef for `CmdlineParseResult<T>` and it acts similar to a poor version of
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h504 CmdlineParseResult<TArg> result = type_parser.ParseAndAppend(argument, existing); in ParseArgumentSingle()
511 CmdlineParseResult<TArg> result = type_parser.Parse(argument); in ParseArgumentSingle()
518 return CmdlineParseResult<TArg>::OutOfRange( in ParseArgumentSingle()
/art/artd/
Dartd.cc334 CmdlineParseResult<LogVerbosity> result = parser.Parse(options); in SetLogVerbosity()