Lines Matching refs:flag

184 OStream& operator<<(OStream& os, const Flag& flag) {  // NOLINT  in operator <<()  argument
185 switch (flag.type()) { in operator <<()
187 os << (*flag.bool_variable() ? "true" : "false"); in operator <<()
190 os << (flag.maybe_bool_variable()->has_value in operator <<()
191 ? (flag.maybe_bool_variable()->value ? "true" : "false") in operator <<()
195 os << *flag.int_variable(); in operator <<()
198 os << *flag.float_variable(); in operator <<()
201 const char* str = flag.string_value(); in operator <<()
206 JSArguments args = *flag.args_variable(); in operator <<()
352 Flag* flag = FindFlag(name); in SetFlagsFromCommandLine() local
353 if (flag == NULL) { in SetFlagsFromCommandLine()
369 if (flag->type() != Flag::TYPE_BOOL && in SetFlagsFromCommandLine()
370 flag->type() != Flag::TYPE_MAYBE_BOOL && in SetFlagsFromCommandLine()
371 flag->type() != Flag::TYPE_ARGS && in SetFlagsFromCommandLine()
379 arg, Type2String(flag->type())); in SetFlagsFromCommandLine()
387 switch (flag->type()) { in SetFlagsFromCommandLine()
389 *flag->bool_variable() = !is_bool; in SetFlagsFromCommandLine()
392 *flag->maybe_bool_variable() = MaybeBoolFlag::Create(true, !is_bool); in SetFlagsFromCommandLine()
395 *flag->int_variable() = strtol(value, &endp, 10); // NOLINT in SetFlagsFromCommandLine()
398 *flag->float_variable() = strtod(value, &endp); in SetFlagsFromCommandLine()
401 flag->set_string_value(value ? StrDup(value) : NULL, true); in SetFlagsFromCommandLine()
413 *flag->args_variable() = JSArguments::Create(js_argc, js_argv); in SetFlagsFromCommandLine()
420 bool is_bool_type = flag->type() == Flag::TYPE_BOOL || in SetFlagsFromCommandLine()
421 flag->type() == Flag::TYPE_MAYBE_BOOL; in SetFlagsFromCommandLine()
426 arg, Type2String(flag->type())); in SetFlagsFromCommandLine()