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 series of constants.
118 #[arg(long, value_name = "REGEX")]
120 /// Mark any enum whose name matches REGEX as a module of constants.
121 #[arg(long, value_name = "REGEX")]
129 /// Mark any typedef alias whose name matches REGEX to use normal type aliasing.
130 #[arg(long, value_name = "REGEX")]
132 /// Mark any typedef alias whose name matches REGEX to have a new type generated for it.
133 #[arg(long, value_name = "REGEX")]
135 …/// Mark any typedef alias whose name matches REGEX to have a new type with Deref and DerefMut to …
136 #[arg(long, value_name = "REGEX")]
141 …/// Mark any union whose name matches REGEX and who has a non-Copy member to use a bindgen-generat…
142 #[arg(long, value_name = "REGEX")]
144 …/// Mark any union whose name matches REGEX and who has a non-Copy member to use ManuallyDrop (sta…
145 #[arg(long, value_name = "REGEX")]
293 …/// Allowlist all the free-standing functions matching REGEX. Other non-allowlisted functions will…
294 #[arg(long, value_name = "REGEX")]
299 /// Only generate types matching REGEX. Other non-allowlisted types will not be generated.
300 #[arg(long, value_name = "REGEX")]
302 …/// Allowlist all the free-standing variables matching REGEX. Other non-allowlisted variables will…
303 #[arg(long, value_name = "REGEX")]
308 /// Allowlist all items matching REGEX. Other non-allowlisted items will not be generated.
309 #[arg(long, value_name = "REGEX")]
317 /// Do not record matching items in the regex sets. This disables reporting of unused items.
337 /// Avoid deriving PartialEq for types matching REGEX.
338 #[arg(long, value_name = "REGEX")]
340 /// Avoid deriving Copy and Clone for types matching REGEX.
341 #[arg(long, value_name = "REGEX")]
343 /// Avoid deriving Debug for types matching REGEX.
344 #[arg(long, value_name = "REGEX")]
346 /// Avoid deriving/implementing Default for types matching REGEX.
347 #[arg(long, value_name = "REGEX")]
349 /// Avoid deriving Hash for types matching REGEX.
350 #[arg(long, value_name = "REGEX")]
352 /// Add `#[must_use]` annotation to types matching REGEX.
353 #[arg(long, value_name = "REGEX")]
394 …/// Overrides the ABI of functions matching REGEX. The OVERRIDE value must be of the shape REGEX=A…
400 …/// Derive custom traits on any kind of type. The CUSTOM value must be of the shape REGEX=DERIVE w…
403 …/// Derive custom traits on a `struct`. The CUSTOM value must be of the shape REGEX=DERIVE where D…
406 …/// Derive custom traits on an `enum. The CUSTOM value must be of the shape REGEX=DERIVE where DER…
409 …/// Derive custom traits on a `union`. The CUSTOM value must be of the shape REGEX=DERIVE where DE…
606 for regex in bitfield_enum { in builder_from_flags()
607 builder = builder.bitfield_enum(regex); in builder_from_flags()
610 for regex in newtype_enum { in builder_from_flags()
611 builder = builder.newtype_enum(regex); in builder_from_flags()
614 for regex in newtype_global_enum { in builder_from_flags()
615 builder = builder.newtype_global_enum(regex); in builder_from_flags()
618 for regex in rustified_enum { in builder_from_flags()
619 builder = builder.rustified_enum(regex); in builder_from_flags()
622 for regex in constified_enum { in builder_from_flags()
623 builder = builder.constified_enum(regex); in builder_from_flags()
626 for regex in constified_enum_module { in builder_from_flags()
627 builder = builder.constified_enum_module(regex); in builder_from_flags()
639 for regex in normal_alias { in builder_from_flags()
640 builder = builder.type_alias(regex); in builder_from_flags()
643 for regex in new_type_alias { in builder_from_flags()
644 builder = builder.new_type_alias(regex); in builder_from_flags()
647 for regex in new_type_alias_deref { in builder_from_flags()
648 builder = builder.new_type_alias_deref(regex); in builder_from_flags()
655 for regex in bindgen_wrapper_union { in builder_from_flags()
656 builder = builder.bindgen_wrapper_union(regex); in builder_from_flags()
659 for regex in manually_drop_union { in builder_from_flags()
660 builder = builder.manually_drop_union(regex); in builder_from_flags()
867 for regex in allowlist_function { in builder_from_flags()
868 builder = builder.allowlist_function(regex); in builder_from_flags()
871 for regex in allowlist_type { in builder_from_flags()
872 builder = builder.allowlist_type(regex); in builder_from_flags()
875 for regex in allowlist_var { in builder_from_flags()
876 builder = builder.allowlist_var(regex); in builder_from_flags()
928 for regex in no_partialeq { in builder_from_flags()
929 builder = builder.no_partialeq(regex); in builder_from_flags()
932 for regex in no_copy { in builder_from_flags()
933 builder = builder.no_copy(regex); in builder_from_flags()
936 for regex in no_debug { in builder_from_flags()
937 builder = builder.no_debug(regex); in builder_from_flags()
940 for regex in no_default { in builder_from_flags()
941 builder = builder.no_default(regex); in builder_from_flags()
944 for regex in no_hash { in builder_from_flags()
945 builder = builder.no_hash(regex); in builder_from_flags()
948 for regex in must_use_type { in builder_from_flags()
949 builder = builder.must_use_type(regex); in builder_from_flags()
1010 for (abi, regex) in override_abi { in builder_from_flags()
1011 builder = builder.override_abi(abi, regex); in builder_from_flags()
1080 for (derives, regex) in custom_derives { in builder_from_flags()
1082 regex_set.insert(regex); in builder_from_flags()