@@ -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 {
@@ -799,8 +799,8 @@ impl Bindings {
799
799
return false ;
800
800
}
801
801
802
- if arg. starts_with ( "-I" )
803
- || arg. starts_with ( "--include-directory=" )
802
+ if arg. starts_with ( "-I" ) ||
803
+ arg. starts_with ( "--include-directory=" )
804
804
{
805
805
return false ;
806
806
}
@@ -827,8 +827,8 @@ impl Bindings {
827
827
debug ! ( "Found clang: {:?}" , clang) ;
828
828
829
829
// Whether we are working with C or C++ inputs.
830
- let is_cpp = args_are_cpp ( & options. clang_args )
831
- || 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) ) ;
832
832
833
833
let search_paths = if is_cpp {
834
834
clang. cpp_search_paths
0 commit comments