Home
last modified time | relevance | path

Searched refs:flag (Results 1 - 25 of 1519) sorted by relevance

12345678910>>...61

/third_party/skia/tools/flags/
H A DCommandLineFlags.cpp122 SkString flag(string, equalIndex); in match()
123 if (flag.equals(*compareName)) { in match()
187 static void print_help_for_flag(const SkFlagInfo* flag) { in print_help_for_flag() argument
188 SkDebugf(" --%s", flag->name().c_str()); in print_help_for_flag()
189 const SkString& shortName = flag->shortName(); in print_help_for_flag()
193 SkDebugf(":\ttype: %s", flag->typeAsString().c_str()); in print_help_for_flag()
194 if (flag->defaultValue().size() > 0) { in print_help_for_flag()
195 SkDebugf("\tdefault: %s", flag->defaultValue().c_str()); in print_help_for_flag()
198 const SkString& help = flag->help(); in print_help_for_flag()
202 static void print_extended_help_for_flag(const SkFlagInfo* flag) { in print_extended_help_for_flag() argument
283 SkFlagInfo* flag = gHead; Parse() local
347 SkFlagInfo* flag = gHead; Parse() local
[all...]
/third_party/rust/crates/clap/clap_bench/benches/
H A D05_ripgrep.rs299 let flag = |name| arg(name).long(name).action(ArgAction::SetTrue); in cmd()
313 .arg(flag("help")) in cmd()
314 .arg(flag("version").short('V')) in cmd()
315 // First, set up primary positional/flag arguments. in cmd()
327 flag("regexp") in cmd()
334 flag("files") in cmd()
339 .arg(flag("type-list").conflicts_with_all(["file", "files", "pattern", "regexp"])) in cmd()
341 .arg(flag("text").short('a')) in cmd()
342 .arg(flag("count").short('c')) in cmd()
344 flag("colo in cmd()
[all...]
/third_party/mksh/
H A Dvar.c39 * if (flag&INTEGER), val.i contains integer value, and type contains base.
41 * if (flag&EXPORT), val.s contains "name=value" for E-Z exporting.
106 if ((vp = *vpp++) != NULL && (vp->flag&SPECIAL)) { in popblock()
107 if ((vq = global(vp->name))->flag & ISSET) in popblock()
146 tp->flag = DEFINED|ISSET; in initvar()
196 if (vp && (vp->flag & (DEFINED | ASSOC | ARRAY)) == in array_index_calc()
263 vp->flag = DEFINED; in isglobal()
277 vp->flag |= RDONLY; in isglobal()
282 vp->flag |= RDONLY; in isglobal()
285 vp->flag | in isglobal()
1870 uint32_t fset = 0, fclr = 0, flag; c_typeset() local
2126 c_typeset_vardump_recursive(struct block *l, uint32_t flag, int thing, bool pflag, bool istset) c_typeset_vardump_recursive() argument
2140 c_typeset_vardump(struct tbl *vp, uint32_t flag, int thing, int any_set, bool pflag, bool istset) c_typeset_vardump() argument
[all...]
/third_party/benchmark/src/
H A Dcommandlineflags.cc110 // given flag. For example, FlagToEnvVar("foo") will return
112 static std::string FlagToEnvVar(const char* flag) { in FlagToEnvVar() argument
113 const std::string flag_str(flag); in FlagToEnvVar()
125 bool BoolFromEnv(const char* flag, bool default_val) { in BoolFromEnv() argument
126 const std::string env_var = FlagToEnvVar(flag); in BoolFromEnv()
132 int32_t Int32FromEnv(const char* flag, int32_t default_val) { in Int32FromEnv() argument
133 const std::string env_var = FlagToEnvVar(flag); in Int32FromEnv()
145 double DoubleFromEnv(const char* flag, double default_val) { in DoubleFromEnv() argument
146 const std::string env_var = FlagToEnvVar(flag); in DoubleFromEnv()
158 const char* StringFromEnv(const char* flag, cons argument
165 KvPairsFromEnv( const char* flag, std::map<std::string, std::string> default_val) KvPairsFromEnv() argument
184 ParseFlagValue(const char* str, const char* flag, bool def_optional) ParseFlagValue() argument
210 ParseBoolFlag(const char* str, const char* flag, bool* value) ParseBoolFlag() argument
223 ParseInt32Flag(const char* str, const char* flag, int32_t* value) ParseInt32Flag() argument
236 ParseDoubleFlag(const char* str, const char* flag, double* value) ParseDoubleFlag() argument
249 ParseStringFlag(const char* str, const char* flag, std::string* value) ParseStringFlag() argument
261 ParseKeyValueFlag(const char* str, const char* flag, std::map<std::string, std::string>* value) ParseKeyValueFlag() argument
277 IsFlag(const char* str, const char* flag) IsFlag() argument
[all...]
/third_party/ltp/tools/sparse/sparse-src/
H A Doptions.c159 static int handle_subopt_val(const char *opt, const char *arg, const struct val_map *map, int *flag) in handle_subopt_val() argument
167 *flag = map->val; in handle_subopt_val()
198 static int handle_suboption_mask(const char *arg, const char *opt, const struct mask_map *map, unsigned long *flag) in handle_suboption_mask() argument
201 apply_mask(flag, "", 0, map, 0); in handle_suboption_mask()
216 if (apply_mask(flag, opt, len, map, neg)) in handle_suboption_mask()
230 struct flag { struct
232 int *flag; member
233 int (*fun)(const char *arg, const char *opt, const struct flag *, int options);
238 static int handle_switches(const char *ori, const char *opt, const struct flag *flags) in handle_switches()
243 // Prefixe "no-" mean to turn flag of in handle_switches()
281 int flag = FLAG_ON; handle_onoff_switch() local
314 handle_switch_setval(const char *arg, const char *opt, const struct flag *flag, int options) handle_switch_setval() argument
422 handle_ftabstop(const char *arg, const char *opt, const struct flag *flag, int options) handle_ftabstop() argument
438 handle_fpasses(const char *arg, const char *opt, const struct flag *flag, int options) handle_fpasses() argument
469 handle_fdiagnostic_prefix(const char *arg, const char *opt, const struct flag *flag, int options) handle_fdiagnostic_prefix() argument
483 handle_fdump_ir(const char *arg, const char *opt, const struct flag *flag, int options) handle_fdump_ir() argument
496 handle_fmemcpy_max_count(const char *arg, const char *opt, const struct flag *flag, int options) handle_fmemcpy_max_count() argument
502 handle_fmax_errors(const char *arg, const char *opt, const struct flag *flag, int options) handle_fmax_errors() argument
508 handle_fmax_warnings(const char *arg, const char *opt, const struct flag *flag, int options) handle_fmax_warnings() argument
628 handle_march(const char *opt, const char *arg, const struct flag *flag, int options) handle_march() argument
635 handle_mcmodel(const char *opt, const char *arg, const struct flag *flag, int options) handle_mcmodel() argument
650 handle_mfloat_abi(const char *opt, const char *arg, const struct flag *flag, int options) handle_mfloat_abi() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dcbs_h265_syntax_template.c97 flag(general_tier_flag); in profile_tier_level()
103 flag(general_progressive_source_flag); in profile_tier_level()
104 flag(general_interlaced_source_flag); in profile_tier_level()
105 flag(general_non_packed_constraint_flag); in profile_tier_level()
106 flag(general_frame_only_constraint_flag); in profile_tier_level()
114 flag(general_max_12bit_constraint_flag); in profile_tier_level()
115 flag(general_max_10bit_constraint_flag); in profile_tier_level()
116 flag(general_max_8bit_constraint_flag); in profile_tier_level()
117 flag(general_max_422chroma_constraint_flag); in profile_tier_level()
118 flag(general_max_420chroma_constraint_fla in profile_tier_level()
[all...]
/third_party/node/test/parallel/
H A Dtest-process-env-allowed-flags.js34 goodFlags.forEach((flag) => {
36 process.allowedNodeEnvironmentFlags.has(flag),
38 `flag should be in set: ${flag}`
42 badFlags.forEach((flag) => {
44 process.allowedNodeEnvironmentFlags.has(flag),
46 `flag should not be in set: ${flag}`
53 process.allowedNodeEnvironmentFlags.forEach((flag) => {
54 assert.match(flag, /
[all...]
/third_party/googletest/googletest/test/
H A Dgoogletest-env-var-test_.cc47 void PrintFlag(const char* flag) { in PrintFlag() argument
48 if (strcmp(flag, "break_on_failure") == 0) { in PrintFlag()
53 if (strcmp(flag, "catch_exceptions") == 0) { in PrintFlag()
58 if (strcmp(flag, "color") == 0) { in PrintFlag()
63 if (strcmp(flag, "death_test_style") == 0) { in PrintFlag()
68 if (strcmp(flag, "death_test_use_fork") == 0) { in PrintFlag()
73 if (strcmp(flag, "fail_fast") == 0) { in PrintFlag()
78 if (strcmp(flag, "filter") == 0) { in PrintFlag()
83 if (strcmp(flag, "output") == 0) { in PrintFlag()
88 if (strcmp(flag, "brie in PrintFlag()
113 cout << "Invalid flag name " << flag PrintFlag() local
[all...]
/third_party/node/deps/v8/src/flags/
H A Dflags.cc36 #include "src/flags/flag-definitions.h" // NOLINT(build/include)
40 #include "src/flags/flag-definitions.h" // NOLINT(build/include)
50 // This structure represents a single entry in the flag system, with a pointer
51 // to the actual flag, default value, comment, etc. This is designed to be POD
67 FlagType type_; // What type of flag, bool, int, or string.
68 const char* name_; // Name of the flag, ex "my_flag".
69 void* valptr_; // Pointer to the global flag variable.
72 bool owns_ptr_; // Does the flag own its string value?
225 // Setting the flag manually to false before calling Reset() avoids this in ShouldCheckFlagContradictions()
234 // {change_flag} indicates if we're going to change the flag valu
436 const Flag& flag; global() member
449 const Flag& flag; global() member
453 const Flag& flag = flag_value.flag; operator <<() local
487 operator <<(std::ostream& os, const Flag& flag) operator <<() argument
511 modified_args_as_string << flag; ComputeFlagListHash() local
604 Flag* flag = FindFlagByName(name); SetFlagsFromCommandLine() local
[all...]
/third_party/ltp/testcases/realtime/func/gtod_latency/
H A Dgtod_latency.c104 char *flag; in stats_cmdline() local
111 printf("missing flag indicator\n"); in stats_cmdline()
115 flag = ++argv[i]; in stats_cmdline()
117 if (!strcmp(flag, "help") || !strcmp(flag, "h")) { in stats_cmdline()
122 if (!strcmp(flag, "so") || !strcmp(flag, "scatter-output")) { in stats_cmdline()
124 printf("flag has missing argument\n"); in stats_cmdline()
131 if (!strcmp(flag, "ho") || !strcmp(flag, "his in stats_cmdline()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/
H A Dreflection.cc40 // A FlagRegistry singleton object holds all flag objects indexed by their
41 // names so that if you know a flag's name, you can access or set it. If the
52 // Store a flag in this registry. Takes ownership of *flag.
53 void RegisterFlag(CommandLineFlag& flag, const char* filename);
58 // Returns the flag object for the specified name, or nullptr if not found.
59 // Will emit a warning if a 'retired' flag is specified.
70 // The map from name to flag, for FindFlag().
113 void FlagRegistry::RegisterFlag(CommandLineFlag& flag, const char* filename) { in RegisterFlag() argument
115 flag in RegisterFlag()
191 RegisterCommandLineFlag(CommandLineFlag& flag, const char* filename) RegisterCommandLineFlag() argument
284 auto* flag = ::new (static_cast<void*>(buf)) Retire() local
[all...]
/third_party/ntfs-3g/include/ntfs-3g/
H A Dinode.h57 #define test_nino_flag(ni, flag) test_bit(NI_##flag, (ni)->state)
58 #define set_nino_flag(ni, flag) set_bit(NI_##flag, (ni)->state)
59 #define clear_nino_flag(ni, flag) clear_bit(NI_##flag, (ni)->state)
61 #define test_and_set_nino_flag(ni, flag) \
62 test_and_set_bit(NI_##flag, (ni)->state)
63 #define test_and_clear_nino_flag(ni, flag) \
64 test_and_clear_bit(NI_##flag, (n
[all...]
/third_party/node/deps/v8/src/base/
H A Dflags.h31 constexpr Flags(flag_type flag) // NOLINT(runtime/explicit) in Flags() argument
32 : mask_(static_cast<S>(flag)) {} in Flags()
35 constexpr bool operator==(flag_type flag) const { in operator ==()
36 return mask_ == static_cast<S>(flag); in operator ==()
38 constexpr bool operator!=(flag_type flag) const { in operator !=()
39 return mask_ != static_cast<S>(flag); in operator !=()
65 Flags& operator&=(flag_type flag) { return operator&=(Flags(flag)); } in operator &=() argument
66 Flags& operator|=(flag_type flag) { return operator|=(Flags(flag)); } in operator |=() argument
67 operator ^=(flag_type flag) operator ^=() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/flags/internal/
H A Dprivate_handle_accessor.cc30 FlagFastTypeId PrivateHandleAccessor::TypeId(const CommandLineFlag& flag) { in TypeId() argument
31 return flag.TypeId(); in TypeId()
35 CommandLineFlag& flag) { in SaveState()
36 return flag.SaveState(); in SaveState()
40 const CommandLineFlag& flag) { in IsSpecifiedOnCommandLine()
41 return flag.IsSpecifiedOnCommandLine(); in IsSpecifiedOnCommandLine()
44 bool PrivateHandleAccessor::ValidateInputValue(const CommandLineFlag& flag, in ValidateInputValue() argument
46 return flag.ValidateInputValue(value); in ValidateInputValue()
50 const CommandLineFlag& flag) { in CheckDefaultValueParsingRoundtrip()
51 flag in CheckDefaultValueParsingRoundtrip()
34 SaveState( CommandLineFlag& flag) SaveState() argument
39 IsSpecifiedOnCommandLine( const CommandLineFlag& flag) IsSpecifiedOnCommandLine() argument
49 CheckDefaultValueParsingRoundtrip( const CommandLineFlag& flag) CheckDefaultValueParsingRoundtrip() argument
54 ParseFrom(CommandLineFlag& flag, absl::string_view value, flags_internal::FlagSettingMode set_mode, flags_internal::ValueSource source, std::string& error) ParseFrom() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/manual/network/
H A Dgethostbyname2.c34 bool flag = false; in gethostbyname2_0100() local
38 flag = true; in gethostbyname2_0100()
40 EXPECT_TRUE("gethostbyname2_0100", flag); in gethostbyname2_0100()
51 bool flag = false; in gethostbyname2_0200() local
55 flag = true; in gethostbyname2_0200()
57 EXPECT_TRUE("gethostbyname2_0200", flag); in gethostbyname2_0200()
68 bool flag = false; in gethostbyname2_0300() local
72 flag = true; in gethostbyname2_0300()
74 EXPECT_TRUE("gethostbyname2_0300", flag); in gethostbyname2_0300()
84 bool flag in gethostbyname2_0400() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DThreading.h63 /// This macro is the only way you should define your once flag for LLVM's
65 #define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag
72 /// This macro is the only way you should define your once flag for LLVM's
74 #define LLVM_DEFINE_ONCE_FLAG(flag) static once_flag flag = Uninitialized
84 /// LLVM_DEFINE_ONCE_FLAG(flag);
85 /// call_once(flag, foo);
88 /// \param flag Flag used for tracking whether or not this has run.
91 void call_once(once_flag &flag, Functio argument
[all...]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A Dfail_stream_test.cc29 bool flag = true; in TEST_F() local
30 FailStream fs(&flag, nullptr); in TEST_F()
34 flag = false; in TEST_F()
37 flag = true; in TEST_F()
43 bool flag = true; in TEST_F() local
44 FailStream fs(&flag, nullptr); in TEST_F()
45 EXPECT_TRUE(flag); in TEST_F()
48 EXPECT_FALSE(flag); in TEST_F()
53 bool flag = true; in TEST_F() local
54 FailStream fs(&flag, nullpt in TEST_F()
60 bool flag = true; TEST_F() local
[all...]
/third_party/spirv-tools/tools/util/
H A Dflags.cpp35 // Extracts the flag name from a potential token.
36 // This function only looks for a '=', to split the flag name from the value for
37 // long-form flags. Returns the name of the flag, prefixed with the hyphen(s).
38 inline std::string get_flag_name(const std::string& flag, bool is_short_flag) { in get_flag_name() argument
40 return flag; in get_flag_name()
43 size_t equal_index = flag.find('='); in get_flag_name()
45 return flag; in get_flag_name()
47 return flag.substr(0, equal_index); in get_flag_name()
50 // Parse a boolean flag. Returns `true` if the parsing succeeded, `false`
52 bool parse_bool_flag(Flag<bool>& flag, boo argument
81 parse_flag_value(Flag<uint32_t>& flag, const std::string& value) parse_flag_value() argument
108 parse_flag_value(Flag<std::string>& flag, const std::string& value) parse_flag_value() argument
117 parse_flag(Flag<T>& flag, bool is_short_flag, const char*** iterator) parse_flag() argument
[all...]
/third_party/toybox/toys/pending/
H A Dipcs.c41 #define flag(x) (toys.optflags & FLAG_ ## x) macro
161 if (flag(u)) { in shm_array()
175 if (flag(l)) { in shm_array()
189 if (flag(t)) { in shm_array()
193 } else if (flag(p)) { in shm_array()
197 } else if (flag(c)) { in shm_array()
210 if (flag(t)) { in shm_array()
220 } else if (flag(p)) { in shm_array()
225 } else if (flag(c)) { in shm_array()
265 if (flag( in sem_array()
[all...]
/third_party/ltp/testcases/kernel/syscalls/memfd_create/
H A Dmemfd_create04.c32 int flag; member
36 {.flag = MFD_HUGE_64KB, .h_size = "64kB"},
37 {.flag = MFD_HUGE_512KB, .h_size = "512kB"},
38 {.flag = MFD_HUGE_2MB, .h_size = "2048kB"},
39 {.flag = MFD_HUGE_8MB, .h_size = "8192kB"},
40 {.flag = MFD_HUGE_16MB, .h_size = "16384kB"},
41 {.flag = MFD_HUGE_256MB, .h_size = "262144kB"},
42 {.flag = MFD_HUGE_1GB, .h_size = "1048576kB"},
43 {.flag = MFD_HUGE_2GB, .h_size = "2097152kB"},
44 {.flag
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/util/
H A Dstring_utils.cpp40 std::pair<std::string, std::string> SplitFlagArgs(const std::string& flag) { in SplitFlagArgs() argument
41 if (flag.size() < 2) return make_pair(flag, std::string()); in SplitFlagArgs()
46 if (flag[0] == '-' && flag[1] == '-') in SplitFlagArgs()
48 else if (flag[0] == '-') in SplitFlagArgs()
51 size_t ix = flag.find('='); in SplitFlagArgs()
53 ? make_pair(flag.substr(dash_ix, ix - 2), flag.substr(ix + 1)) in SplitFlagArgs()
54 : make_pair(flag in SplitFlagArgs()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
H A Dstring_utils.cpp40 std::pair<std::string, std::string> SplitFlagArgs(const std::string& flag) { in SplitFlagArgs() argument
41 if (flag.size() < 2) return make_pair(flag, std::string()); in SplitFlagArgs()
46 if (flag[0] == '-' && flag[1] == '-') in SplitFlagArgs()
48 else if (flag[0] == '-') in SplitFlagArgs()
51 size_t ix = flag.find('='); in SplitFlagArgs()
53 ? make_pair(flag.substr(dash_ix, ix - 2), flag.substr(ix + 1)) in SplitFlagArgs()
54 : make_pair(flag in SplitFlagArgs()
[all...]
/third_party/spirv-tools/source/util/
H A Dstring_utils.cpp40 std::pair<std::string, std::string> SplitFlagArgs(const std::string& flag) { in SplitFlagArgs() argument
41 if (flag.size() < 2) return make_pair(flag, std::string()); in SplitFlagArgs()
46 if (flag[0] == '-' && flag[1] == '-') in SplitFlagArgs()
48 else if (flag[0] == '-') in SplitFlagArgs()
51 size_t ix = flag.find('='); in SplitFlagArgs()
53 ? make_pair(flag.substr(dash_ix, ix - 2), flag.substr(ix + 1)) in SplitFlagArgs()
54 : make_pair(flag in SplitFlagArgs()
[all...]
/third_party/nghttp2/src/
H A Dshrpx.cc4109 static int flag = 0; in main() local
4124 {SHRPX_OPT_ADD_X_FORWARDED_FOR.c_str(), no_argument, &flag, 1}, in main()
4126 &flag, 2}, in main()
4127 {SHRPX_OPT_FRONTEND_READ_TIMEOUT.c_str(), required_argument, &flag, 3}, in main()
4128 {SHRPX_OPT_FRONTEND_WRITE_TIMEOUT.c_str(), required_argument, &flag, 4}, in main()
4129 {SHRPX_OPT_BACKEND_READ_TIMEOUT.c_str(), required_argument, &flag, 5}, in main()
4130 {SHRPX_OPT_BACKEND_WRITE_TIMEOUT.c_str(), required_argument, &flag, 6}, in main()
4131 {SHRPX_OPT_ACCESSLOG_FILE.c_str(), required_argument, &flag, 7}, in main()
4132 {SHRPX_OPT_BACKEND_KEEP_ALIVE_TIMEOUT.c_str(), required_argument, &flag, in main()
4134 {SHRPX_OPT_FRONTEND_HTTP2_WINDOW_BITS.c_str(), required_argument, &flag, in main()
[all...]
/third_party/mesa3d/src/util/
H A Ddebug.c33 uint64_t flag = 0; in parse_debug_string() local
38 flag |= control->flag; in parse_debug_string()
47 flag |= control->flag; in parse_debug_string()
53 return flag; in parse_debug_string()
61 uint64_t flag = default_value; in parse_enable_string() local
66 flag |= control->flag; in parse_enable_string()
86 flag | in parse_enable_string()
[all...]

Completed in 20 milliseconds

12345678910>>...61