Searched refs:CmdlineResult (Results 1 – 9 of 9) sorted by relevance
/art/cmdline/ |
D | cmdline_result.h | 27 struct CmdlineResult { struct 53 explicit CmdlineResult(Status status) : status_(status) {} in CmdlineResult() argument 56 CmdlineResult(Status status, const std::string& message) in CmdlineResult() function 62 CmdlineResult(Status status, std::string&& message) in CmdlineResult() function 68 CmdlineResult(const CmdlineResult&) = default; 70 CmdlineResult(CmdlineResult&&) = default; 78 static inline std::ostream& operator<<(std::ostream& stream, CmdlineResult::Status status) { argument 80 case CmdlineResult::kSuccess: 83 case CmdlineResult::kUsage: 86 case CmdlineResult::kFailure: [all …]
|
D | cmdline_parse_result.h | 30 struct CmdlineParseResult : CmdlineResult { 31 using CmdlineResult::CmdlineResult; 126 : CmdlineResult(kSuccess), value_(value), has_value_(true) {} in CmdlineParseResult() 128 : CmdlineResult(kSuccess), value_(std::forward<T>(value)), has_value_(true) {} in CmdlineParseResult() 130 : CmdlineResult(kSuccess), value_(), has_value_(false) {} in CmdlineParseResult()
|
D | cmdline_parser_test.cc | 143 static ::testing::AssertionResult IsResultSuccessful(const CmdlineResult& result) { in IsResultSuccessful() 152 static ::testing::AssertionResult IsResultFailure(const CmdlineResult& result, in IsResultFailure() 153 CmdlineResult::Status failure_status) { in IsResultFailure() 244 EXPECT_SINGLE_PARSE_FAIL("abcdefg^%@#*(@#", CmdlineResult::kUnknown); in TEST_F() 246 EXPECT_SINGLE_PARSE_FAIL("-Xverify:whatever", CmdlineResult::kFailure); in TEST_F() 248 EXPECT_SINGLE_PARSE_FAIL("-Xsswhatever", CmdlineResult::kFailure); // invalid memory value in TEST_F() 249 EXPECT_SINGLE_PARSE_FAIL("-Xms123", CmdlineResult::kFailure); // memory value too small in TEST_F() 250 EXPECT_SINGLE_PARSE_FAIL("-XX:HeapTargetUtilization=0.0", CmdlineResult::kOutOfRange); // toosmal in TEST_F() 251 EXPECT_SINGLE_PARSE_FAIL("-XX:HeapTargetUtilization=2.0", CmdlineResult::kOutOfRange); // toolarg in TEST_F() 252 EXPECT_SINGLE_PARSE_FAIL("-XX:ParallelGCThreads=-5", CmdlineResult::kOutOfRange); // too small in TEST_F() [all …]
|
D | cmdline_parser.h | 446 CmdlineResult Parse(const std::string& argv) { in Parse() 454 CmdlineResult Parse(const char* argv) { in Parse() 460 CmdlineResult Parse(const std::vector<const char*>& argv) { in Parse() 466 CmdlineResult Parse(const std::vector<std::string>& argv) { in Parse() 472 CmdlineResult Parse(const char* argv[], int argc) { in Parse() 517 CmdlineResult Parse(TokenRange&& arguments_list) { in Parse() 549 return CmdlineResult(CmdlineResult::kUnknown, in Parse() 570 return CmdlineResult(CmdlineResult::kFailure, in Parse() 579 return CmdlineResult(CmdlineResult::kFailure, in Parse() 589 CmdlineResult parse_attempt = arg->ParseArgument(exact_range, &consumed_tokens); in Parse() [all …]
|
D | README.md | 242 When many arguments are parsed, the result is collapsed down to a `CmdlineResult` which acts as a
|
/art/cmdline/detail/ |
D | cmdline_parse_argument_detail.h | 59 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) = 0; 315 virtual CmdlineResult ParseArgument(const TokenRange& arguments, size_t* consumed_tokens) { in ParseArgument() 326 return CmdlineResult(CmdlineResult::kUnknown, "Size mismatch"); in ParseArgument() 349 return CmdlineResult(CmdlineResult::kFailure, in ParseArgument() 361 return CmdlineResult(CmdlineResult::kFailure, in ParseArgument() 384 virtual CmdlineResult ParseArgumentSingle(const std::string& argument) { in ParseArgumentSingle() 405 return CmdlineResult(CmdlineResult::kFailure, in ParseArgumentSingle() 432 return CmdlineResult(CmdlineResult::kFailure, in ParseArgumentSingle() 464 CmdlineResult raw_result = std::move(result); in ParseArgumentSingle() 489 CmdlineResult SaveArgument(const TArg& value) { in SaveArgument() [all …]
|
/art/compiler/driver/ |
D | compiler_options.cc | 134 CmdlineResult parse_result = parser.Parse(options); in ParseCompilerOptions()
|
/art/runtime/ |
D | parsed_options.cc | 544 CmdlineResult parse_result = parser->Parse(argv_list); in DoParse() 548 if (parse_result.GetStatus() == CmdlineResult::kUsage) { in DoParse() 551 } else if (parse_result.GetStatus() == CmdlineResult::kUnknown && !ignore_unrecognized) { in DoParse()
|
/art/dex2oat/ |
D | dex2oat_options.cc | 274 CmdlineResult parse_result = parser.Parse(argv, argc); in Parse()
|