@@ -87,10 +87,10 @@ pub const DEFAULT_ANON_FIELDS_PREFIX: &str = "__bindgen_anon_";
87
87
const DEFAULT_NON_EXTERN_FNS_SUFFIX : & str = "__extern" ;
88
88
89
89
fn file_is_cpp ( name_file : & str ) -> bool {
90
- name_file. ends_with ( ".hpp" ) ||
91
- name_file. ends_with ( ".hxx" ) ||
92
- name_file. ends_with ( ".hh" ) ||
93
- name_file. ends_with ( ".h++" )
90
+ name_file. ends_with ( ".hpp" )
91
+ || name_file. ends_with ( ".hxx" )
92
+ || name_file. ends_with ( ".hh" )
93
+ || name_file. ends_with ( ".h++" )
94
94
}
95
95
96
96
fn args_are_cpp ( clang_args : & [ Box < str > ] ) -> bool {
@@ -237,6 +237,7 @@ impl std::fmt::Display for Formatter {
237
237
/// 2. [`bitfield_enum()`](#method.bitfield_enum)
238
238
/// 3. [`newtype_enum()`](#method.newtype_enum)
239
239
/// 4. [`rustified_enum()`](#method.rustified_enum)
240
+ /// 4. [`rustified_non_exhaustive_enum()`](#method.rustified_non_exhaustive_enum)
240
241
///
241
242
/// For each C enum, bindgen tries to match the pattern in the following order:
242
243
///
@@ -798,8 +799,8 @@ impl Bindings {
798
799
return false ;
799
800
}
800
801
801
- if arg. starts_with ( "-I" ) ||
802
- arg. starts_with ( "--include-directory=" )
802
+ if arg. starts_with ( "-I" )
803
+ || arg. starts_with ( "--include-directory=" )
803
804
{
804
805
return false ;
805
806
}
@@ -826,8 +827,8 @@ impl Bindings {
826
827
debug ! ( "Found clang: {:?}" , clang) ;
827
828
828
829
// Whether we are working with C or C++ inputs.
829
- let is_cpp = args_are_cpp ( & options. clang_args ) ||
830
- options. input_headers . iter ( ) . any ( |h| file_is_cpp ( h) ) ;
830
+ let is_cpp = args_are_cpp ( & options. clang_args )
831
+ || options. input_headers . iter ( ) . any ( |h| file_is_cpp ( h) ) ;
831
832
832
833
let search_paths = if is_cpp {
833
834
clang. cpp_search_paths
0 commit comments