Home
last modified time | relevance | path

Searched refs:get_id (Results 1 - 25 of 62) sorted by relevance

123

/third_party/rust/crates/clap/src/builder/
H A Ddebug_asserts.rs33 .map(|x| x.get_id())
67 arg.get_id()
71 short_flags.push(Flag::Arg(format!("-{s}"), arg.get_id().as_str()));
75 short_flags.push(Flag::Arg(format!("-{short_alias}"), arg.get_id().as_str()));
79 assert!(!l.starts_with('-'), "Argument {}: long {:?} must not start with a `-`, that will be handled by the parser", arg.get_id(), l);
80 long_flags.push(Flag::Arg(format!("--{l}"), arg.get_id().as_str()));
84 long_flags.push(Flag::Arg(format!("--{long_alias}"), arg.get_id().as_str()));
88 if let Some((first, second)) = cmd.two_args_of(|x| x.get_id() == arg.get_id()) {
92 arg.get_id(),
[all...]
H A Darg_group.rs501 pub fn get_id(&self) -> &Id { in get_id() functions
/third_party/rust/crates/clap/tests/
H A Dmacros.rs5 assert_eq!(arg.get_id(), "foo"); in name_explicit()
14 assert_eq!(arg.get_id(), "bar"); in name_from_long()
23 assert_eq!(arg.get_id(), "NUM"); in name_from_value()
44 assert_eq!(arg.get_id(), "foo"); in short()
52 assert_eq!(arg.get_id(), "foo"); in short()
60 assert_eq!(arg.get_id(), "foo"); in short()
68 assert_eq!(arg.get_id(), "foo"); in short()
82 assert_eq!(arg.get_id(), "foo"); in short_and_long()
91 assert_eq!(arg.get_id(), "foo"); in short_and_long()
100 assert_eq!(arg.get_id(), "fo in short_and_long()
[all...]
/third_party/rust/crates/clap/src/parser/
H A Dvalidator.rs37 let should_err = if let Some(v) = matcher.args.get(o.get_id()) {
233 for req in self.cmd.unroll_arg_requires(is_relevant, arg.get_id()) { in gather_requires()
277 arg.get_id() in validate_required()
279 missing_required.push(arg.get_id().clone()); in validate_required()
294 group.get_id() in validate_required()
296 missing_required.push(group.get_id().clone()); in validate_required()
305 .filter(|a| !matcher.check_explicit(a.get_id(), &ArgPredicate::IsPresent)) in validate_required()
313 a.get_id() in validate_required()
325 a.get_id() in validate_required()
335 a.get_id() in validate_required()
[all...]
H A Dparser.rs296 ParseResult::Opt(arg.get_id().clone())
400 if matcher.pending_arg_id() != Some(arg.get_id()) || !arg.is_multiple_values_set() {
410 arg.get_id(),
422 parse_state = ParseState::Pos(arg.get_id().clone());
649 current_positional.get_id() in is_new_arg()
652 if self.cmd[current_positional.get_id()].is_allow_hyphen_values_set()
653 || (self.cmd[current_positional.get_id()].is_allow_negative_numbers_set()
800 !(a.is_hide_set() || required.contains(a.get_id())) in parse_long_arg()
805 used.push(arg.get_id().clone()); in parse_long_arg()
1001 arg.get_id(), in parse_opt_value()
[all...]
H A Darg_matcher.rs28 let args = _cmd.get_arguments().map(|a| a.get_id().clone());
29 let groups = _cmd.get_groups().map(|g| g.get_id().clone());
137 let id = arg.get_id().clone();
189 .and_then(|p| (p.id == *o.get_id()).then_some(p.raw_vals.len()))
193 o.get_id(),
/third_party/rust/crates/clap/tests/derive/
H A Dhelp.rs19 .find(|a| a.get_id() == "should_be_in_section_a") in arg_help_heading_applied()
25 .find(|a| a.get_id() == "no_section") in arg_help_heading_applied()
47 .find(|a| a.get_id() == "should_be_in_section_a") in app_help_heading_applied()
53 .find(|a| a.get_id() == "should_be_in_default_section") in app_help_heading_applied()
124 .find(|a| a.get_id() == "should_be_in_section_a") in app_help_heading_flattened()
130 .find(|a| a.get_id() == "should_be_in_section_b") in app_help_heading_flattened()
136 .find(|a| a.get_id() == "should_be_in_default_section") in app_help_heading_flattened()
144 .find(|a| a.get_id() == "should_be_in_sub_a") in app_help_heading_flattened()
152 .find(|a| a.get_id() == "should_be_in_sub_b") in app_help_heading_flattened()
161 .find(|a| a.get_id() in app_help_heading_flattened()
[all...]
H A Dflags.rs94 let arg = cmd.get_arguments().find(|a| a.get_id() == "help").unwrap(); in inferred_help()
117 .find(|a| a.get_id() == "version") in inferred_version()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DPerThreadProcTests.cpp69 EXPECT_EQ(std::this_thread::get_id(), threadIdA); in TEST_F()
90 EXPECT_EQ(std::this_thread::get_id(), threadIdB); in TEST_F()
107 threadIdA = threadA.get_id(); in TEST_F()
108 threadIdB = threadB.get_id(); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dscheduler_test.cpp116 auto threadID = std::this_thread::get_id(); in TEST_P()
118 ASSERT_EQ(threadID, std::this_thread::get_id()); in TEST_P()
143 auto threadID = std::this_thread::get_id(); in TEST_P()
145 ASSERT_EQ(threadID, std::this_thread::get_id()); in TEST_P()
175 threads.emplace(std::this_thread::get_id()); in TEST_F()
181 ASSERT_EQ(threads.count(std::this_thread::get_id()), 0U); in TEST_F()
/third_party/libabigail/src/
H A Dabg-corpus-priv.h249 get_id(const function_decl& fn) in get_id() function in abigail::ir::corpus::exported_decls_builder::priv
250 {return fn.get_id();} in get_id()
258 get_id(const var_decl& var) in get_id() function in abigail::ir::corpus::exported_decls_builder::priv
259 {return var.get_id();} in get_id()
292 string fn_id = fn->get_id(); in fn_id_is_in_id_fns_map()
310 const string fn_id = fn->get_id(); in fn_is_in_fns()
314 if ((*i)->get_id() == fn_id in fn_is_in_fns()
346 string fn_id = fn->get_id(); in add_fn_to_id_fns_map()
397 const string& var_id = get_id(*var); in add_var_to_map()
421 const string& id = get_id(*va in add_var_to_exported()
[all...]
/third_party/rust/crates/clap/src/
H A Dmacros.rs212 if arg.get_id() == "" {
235 if arg.get_id() == "" {
301 if arg.get_id() == "" {
328 if arg.get_id() == "" {
357 if arg.get_id() == "" {
386 if arg.get_id() == "" {
539 debug_assert_ne!(arg.get_id(), "", "Without a value or long flag, the `name:` prefix is required");
/third_party/rust/crates/clap/src/output/
H A Dusage.rs157 debug!("Usage::needs_options_tag:iter: f={}", f.get_id()); in needs_options_tag()
173 for grp_s in self.cmd.groups_for_arg(f.get_id()) { in needs_options_tag()
246 if required_groups_members.contains(arg.get_id()) {
269 if required_groups_members.contains(pos.get_id()) {
399 if required_groups_members.contains(arg.get_id()) {
H A Dhelp_template.rs442 arg.get_id(), in write_args()
514 arg.get_id(), in align_to_about()
982 s.push_str(arg.get_id().as_str()); in option_sort_key()
1009 arg.get_id() in should_show_arg()
/third_party/python/Lib/test/
H A Dtest_symtable.py71 self.assertGreater(self.top.get_id(), 0)
72 self.assertGreater(self.Mine.get_id(), 0)
73 self.assertGreater(self.a_method.get_id(), 0)
74 self.assertGreater(self.spam.get_id(), 0)
75 self.assertGreater(self.internal.get_id(), 0)
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DDebugAnnotator11.cpp70 return mUserDefinedAnnotation != nullptr && std::this_thread::get_id() == mAnnotationThread; in loggingEnabledForThisThread()
84 mAnnotationThread = std::this_thread::get_id(); in initialize()
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/
H A DDawnPerfTestPlatform.cpp82 mTraceEventBuffers[std::this_thread::get_id()] = std::move(buffer); in GetLocalTraceEventBuffer()
116 HashCombine(&hash, std::this_thread::get_id()); in AddTraceEvent()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DParallel.cpp72 std::thread::id CurrentThreadId = std::this_thread::get_id();
74 if (T.get_id() == CurrentThreadId)
/third_party/gn/src/gn/
H A Dimport_manager.cc81 ss << std::this_thread::get_id() << file.value(); in DoImport()
130 std::this_thread::get_id()); in DoImport()
H A Dtrace.cc132 item_ = std::make_unique<TraceItem>(t, name, std::this_thread::get_id()); in Coalesced()
140 std::this_thread::get_id()); in Coalesced()
268 out << "{\"pid\":0,\"tid\":\"" << tidmap[std::this_thread::get_id()] << "\""; in SaveTraces()
/third_party/libexif/libexif/
H A Dexif-mnote-data.c119 if (!d || !d->methods.get_id) return 0; in exif_mnote_data_get_id()
120 return d->methods.get_id (d, n); in exif_mnote_data_get_id()
H A Dexif-mnote-data-priv.h49 unsigned int (* get_id) (ExifMnoteData *, unsigned int); member
/third_party/rust/crates/clap/clap_complete/tests/
H A Dgeneral.rs8 .find(|arg| arg.get_id() == "input") in infer_value_hint_for_path_buf()
/third_party/nghttp2/src/
H A Dshrpx_log_config.cc51 auto tid = std::this_thread::get_id(); in LogConfig()
/third_party/rust/crates/clap/clap_complete/src/shells/
H A Dbash.rs198 debug!("vals_for: o={}", o.get_id()); in vals_for()

Completed in 13 milliseconds

123