Lines Matching full:regex
67 let (regex, abi_str) = abi_override in parse_abi_override()
75 Ok((abi, regex.to_owned())) in parse_abi_override()
81 let (regex, derives) = custom_derive in parse_custom_derive()
87 Ok((derives, regex.to_owned())) in parse_custom_derive()
105 /// Mark any enum whose name matches REGEX as a set of bitfield flags.
106 #[arg(long, value_name = "REGEX")]
108 /// Mark any enum whose name matches REGEX as a newtype.
109 #[arg(long, value_name = "REGEX")]
111 /// Mark any enum whose name matches REGEX as a global newtype.
112 #[arg(long, value_name = "REGEX")]
114 /// Mark any enum whose name matches REGEX as a Rust enum.
115 #[arg(long, value_name = "REGEX")]
117 /// Mark any enum whose name matches REGEX as a non-exhaustive Rust enum.
118 #[arg(long, value_name = "REGEX")]
120 /// Mark any enum whose name matches REGEX as a series of constants.
121 #[arg(long, value_name = "REGEX")]
123 /// Mark any enum whose name matches REGEX as a module of constants.
124 #[arg(long, value_name = "REGEX")]
132 /// Mark any typedef alias whose name matches REGEX to use normal type aliasing.
133 #[arg(long, value_name = "REGEX")]
135 /// Mark any typedef alias whose name matches REGEX to have a new type generated for it.
136 #[arg(long, value_name = "REGEX")]
138 …/// Mark any typedef alias whose name matches REGEX to have a new type with Deref and DerefMut to …
139 #[arg(long, value_name = "REGEX")]
144 …/// Mark any union whose name matches REGEX and who has a non-Copy member to use a bindgen-generat…
145 #[arg(long, value_name = "REGEX")]
147 …/// Mark any union whose name matches REGEX and who has a non-Copy member to use ManuallyDrop (sta…
148 #[arg(long, value_name = "REGEX")]
299 …/// Allowlist all the free-standing functions matching REGEX. Other non-allowlisted functions will…
300 #[arg(long, value_name = "REGEX")]
305 /// Only generate types matching REGEX. Other non-allowlisted types will not be generated.
306 #[arg(long, value_name = "REGEX")]
308 …/// Allowlist all the free-standing variables matching REGEX. Other non-allowlisted variables will…
309 #[arg(long, value_name = "REGEX")]
314 /// Allowlist all items matching REGEX. Other non-allowlisted items will not be generated.
315 #[arg(long, value_name = "REGEX")]
323 /// Do not record matching items in the regex sets. This disables reporting of unused items.
343 /// Avoid deriving PartialEq for types matching REGEX.
344 #[arg(long, value_name = "REGEX")]
346 /// Avoid deriving Copy and Clone for types matching REGEX.
347 #[arg(long, value_name = "REGEX")]
349 /// Avoid deriving Debug for types matching REGEX.
350 #[arg(long, value_name = "REGEX")]
352 /// Avoid deriving/implementing Default for types matching REGEX.
353 #[arg(long, value_name = "REGEX")]
355 /// Avoid deriving Hash for types matching REGEX.
356 #[arg(long, value_name = "REGEX")]
358 /// Add `#[must_use]` annotation to types matching REGEX.
359 #[arg(long, value_name = "REGEX")]
400 …/// Overrides the ABI of functions matching REGEX. The OVERRIDE value must be of the shape REGEX=A…
415 …/// Derive custom traits on any kind of type. The CUSTOM value must be of the shape REGEX=DERIVE w…
418 …/// Derive custom traits on a `struct`. The CUSTOM value must be of the shape REGEX=DERIVE where D…
421 …/// Derive custom traits on an `enum. The CUSTOM value must be of the shape REGEX=DERIVE where DER…
424 …/// Derive custom traits on a `union`. The CUSTOM value must be of the shape REGEX=DERIVE where DE…
615 for regex in bitfield_enum { in builder_from_flags()
616 builder = builder.bitfield_enum(regex); in builder_from_flags()
619 for regex in newtype_enum { in builder_from_flags()
620 builder = builder.newtype_enum(regex); in builder_from_flags()
623 for regex in newtype_global_enum { in builder_from_flags()
624 builder = builder.newtype_global_enum(regex); in builder_from_flags()
627 for regex in rustified_enum { in builder_from_flags()
628 builder = builder.rustified_enum(regex); in builder_from_flags()
631 for regex in rustified_non_exhaustive_enum { in builder_from_flags()
632 builder = builder.rustified_non_exhaustive_enum(regex); in builder_from_flags()
635 for regex in constified_enum { in builder_from_flags()
636 builder = builder.constified_enum(regex); in builder_from_flags()
639 for regex in constified_enum_module { in builder_from_flags()
640 builder = builder.constified_enum_module(regex); in builder_from_flags()
652 for regex in normal_alias { in builder_from_flags()
653 builder = builder.type_alias(regex); in builder_from_flags()
656 for regex in new_type_alias { in builder_from_flags()
657 builder = builder.new_type_alias(regex); in builder_from_flags()
660 for regex in new_type_alias_deref { in builder_from_flags()
661 builder = builder.new_type_alias_deref(regex); in builder_from_flags()
668 for regex in bindgen_wrapper_union { in builder_from_flags()
669 builder = builder.bindgen_wrapper_union(regex); in builder_from_flags()
672 for regex in manually_drop_union { in builder_from_flags()
673 builder = builder.manually_drop_union(regex); in builder_from_flags()
884 for regex in allowlist_function { in builder_from_flags()
885 builder = builder.allowlist_function(regex); in builder_from_flags()
888 for regex in allowlist_type { in builder_from_flags()
889 builder = builder.allowlist_type(regex); in builder_from_flags()
892 for regex in allowlist_var { in builder_from_flags()
893 builder = builder.allowlist_var(regex); in builder_from_flags()
945 for regex in no_partialeq { in builder_from_flags()
946 builder = builder.no_partialeq(regex); in builder_from_flags()
949 for regex in no_copy { in builder_from_flags()
950 builder = builder.no_copy(regex); in builder_from_flags()
953 for regex in no_debug { in builder_from_flags()
954 builder = builder.no_debug(regex); in builder_from_flags()
957 for regex in no_default { in builder_from_flags()
958 builder = builder.no_default(regex); in builder_from_flags()
961 for regex in no_hash { in builder_from_flags()
962 builder = builder.no_hash(regex); in builder_from_flags()
965 for regex in must_use_type { in builder_from_flags()
966 builder = builder.must_use_type(regex); in builder_from_flags()
1027 for (abi, regex) in override_abi { in builder_from_flags()
1028 builder = builder.override_abi(abi, regex); in builder_from_flags()
1109 for (derives, regex) in custom_derives { in builder_from_flags()
1111 regex_set.insert(regex); in builder_from_flags()