File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl Cursor {
80
80
/// Returns whether the cursor refers to a built-in definition.
81
81
pub fn is_builtin ( & self ) -> bool {
82
82
let ( file, _, _, _) = self . location ( ) . location ( ) ;
83
- ! file. name ( ) . is_some ( )
83
+ file. name ( ) . is_none ( )
84
84
}
85
85
86
86
/// Get the `Cursor` for this cursor's referent's lexical parent.
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ impl<'ctx> Bindings<'ctx> {
826
826
/// Determines whether the given cursor is in any of the files matched by the
827
827
/// options.
828
828
fn filter_builtins ( ctx : & BindgenContext , cursor : & clang:: Cursor ) -> bool {
829
- !cursor . is_builtin ( ) || ctx . options ( ) . builtins
829
+ ctx . options ( ) . builtins || !cursor . is_builtin ( )
830
830
}
831
831
832
832
/// Parse one `Item` from the Clang cursor.
You can’t perform that action at this time.
0 commit comments