• Home
  • Raw
  • Download

Lines Matching +full:regex +full:- +full:not

14 fn rust_target_help() -> String {  in rust_target_help()
24 ) -> Result<CodegenConfig, Error> { in parse_codegen_config()
46 fn parse_rustfmt_config_path(path_str: &str) -> Result<PathBuf, Error> { in parse_rustfmt_config_path()
52 "--rustfmt-configuration-file needs to be an absolute path!", in parse_rustfmt_config_path()
59 "--rustfmt-configuration-file contains non-valid UTF8 characters.", in parse_rustfmt_config_path()
66 fn parse_abi_override(abi_override: &str) -> Result<(Abi, String), Error> { in parse_abi_override()
67 let (regex, abi_str) = abi_override in parse_abi_override()
75 Ok((abi, regex.to_owned())) in parse_abi_override()
80 ) -> Result<(Vec<String>, String), Error> { in parse_custom_derive()
81 let (regex, derives) = custom_derive in parse_custom_derive()
87 Ok((derives, regex.to_owned())) in parse_custom_derive()
93 override_usage = "bindgen <FLAGS> <OPTIONS> <HEADER> -- <CLANG_ARGS>...",
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")]
138 …/// The default STYLE of code used to generate unions with non-Copy members. Note that ManuallyDro…
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")]
195 …/// Avoid including doc comments in the output, see: <https://github.com/rust-lang/rust-bindgen/is…
213 /// Do not trust the libclang-provided mangling
252 …/// Do not generate bindings for functions or methods. This is useful when you only care about str…
258 /// Do not generate bindings for methods.
261 /// Do not automatically convert floats to f32/f64.
264 /// Do not prepend the enum name to constant or newtype variants.
267 /// Do not try to detect default include paths
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")]
314 …/// Preprocess and dump the input header files to disk. Useful when debugging bindgen, using C-Red…
317 /// Do not record matching items in the regex sets. This disables reporting of unused items.
320 /// Do not bind size_t as usize (useful on platforms where those types are incompatible).
321 #[arg(long = "no-size_t-is-usize")]
323 /// Do not format the generated bindings with rustfmt. This option is deprecated, please use
324 /// `--formatter=none` instead.
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 …tching REGEX. The OVERRIDE value must be of the shape REGEX=ABI where ABI can be one of C, stdcall…
400 …n any kind of type. The CUSTOM value must be of the shape REGEX=DERIVE where DERIVE is a coma-sepa…
403 …aits on a `struct`. The CUSTOM value must be of the shape REGEX=DERIVE where DERIVE is a coma-sepa…
406 …traits on an `enum. The CUSTOM value must be of the shape REGEX=DERIVE where DERIVE is a coma-sepa…
409 …raits on a `union`. The CUSTOM value must be of the shape REGEX=DERIVE where DERIVE is a coma-sepa…
424 /// bitfields. This flag is ignored if the `--respect-cxx-access-specs` flag is used.
427 /// Whether to emit diagnostics or not.
446 ) -> Result<(Builder, Box<dyn io::Write>, bool), io::Error> in builder_from_flags()
595 return Err(io::Error::new(io::ErrorKind::Other, "Header not found")); in builder_from_flags()
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()
899 builder = builder.depfile("-", depfile); 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()
970 ) -> Option<String> { 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()
1026 fn cli_args(&self) -> Vec<String> { in builder_from_flags()
1030 None => "--with-derive-custom", in builder_from_flags()
1031 Some(TypeKind::Struct) => "--with-derive-custom-struct", in builder_from_flags()
1032 Some(TypeKind::Enum) => "--with-derive-custom-enum", in builder_from_flags()
1033 Some(TypeKind::Union) => "--with-derive-custom-union", in builder_from_flags()
1051 ) -> Vec<String> { in builder_from_flags()
1062 (with_derive_custom, None, "--with-derive-custom"), in builder_from_flags()
1066 "--with-derive-custom-struct", in builder_from_flags()
1071 "--with-derive-custom-enum", in builder_from_flags()
1076 "--with-derive-custom-union", in builder_from_flags()
1080 for (derives, regex) in custom_derives { in builder_from_flags()
1082 regex_set.insert(regex); in builder_from_flags()