Searched refs:CmdlineParseResult (Results 1 – 7 of 7) sorted by relevance
30 struct CmdlineParseResult : CmdlineResult { struct34 static CmdlineParseResult Usage(const std::string& message) { in Usage() argument35 return CmdlineParseResult(kUsage, message); in Usage()39 static CmdlineParseResult<T> Failure() { in Failure() argument40 return CmdlineParseResult(kFailure); in Failure()44 static CmdlineParseResult<T> Failure(const std::string& message) { in Failure() argument45 return CmdlineParseResult(kFailure, message); in Failure()49 static CmdlineParseResult<T> Success(const T& value) { in Success() argument50 return CmdlineParseResult(value); in Success()54 static CmdlineParseResult<T> Success(T&& value) { in Success() argument[all …]
229 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 …]
31 using Result = CmdlineParseResult<T>;
585 … CmdlineParseResult<ParseCommaSeparatedIntList>::Success(ParseCommaSeparatedIntList({1, 2, 3, 4})); in TEST_F()588 CmdlineParseResult<ParseCommaSeparatedIntList>::Success(ParseCommaSeparatedIntList({0})); in TEST_F()
231 `Result` is a typedef for `CmdlineParseResult<T>` and it acts similar to a poor version of
504 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()
334 CmdlineParseResult<LogVerbosity> result = parser.Parse(options); in SetLogVerbosity()