File tree 3 files changed +35
-0
lines changed
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -780,6 +780,15 @@ impl Type {
780
780
return Err ( ParseError :: Continue ) ;
781
781
}
782
782
}
783
+ CXType_Auto => {
784
+ // We don't want to blow the stack.
785
+ assert ! ( canonical_ty != * ty, "Couldn't find deduced type" ) ;
786
+ return Self :: from_clang_ty ( potential_id,
787
+ & canonical_ty,
788
+ location,
789
+ parent_id,
790
+ ctx) ;
791
+ }
783
792
// NOTE: We don't resolve pointers eagerly because the pointee type
784
793
// might not have been parsed, and if it contains templates or
785
794
// something else we might get confused, see the comment inside
Original file line number Diff line number Diff line change
1
+ /* automatically generated by rust-bindgen */
2
+
3
+
4
+ #![ allow( non_snake_case) ]
5
+
6
+
7
+ #[ repr( C ) ]
8
+ #[ derive( Debug , Copy ) ]
9
+ pub struct Foo {
10
+ pub _address : u8 ,
11
+ }
12
+ pub const Foo_kBar : bool = true ;
13
+ #[ test]
14
+ fn bindgen_test_layout_Foo ( ) {
15
+ assert_eq ! ( :: std:: mem:: size_of:: <Foo >( ) , 1usize ) ;
16
+ assert_eq ! ( :: std:: mem:: align_of:: <Foo >( ) , 1usize ) ;
17
+ }
18
+ impl Clone for Foo {
19
+ fn clone ( & self ) -> Self { * self }
20
+ }
Original file line number Diff line number Diff line change
1
+ // bindgen-flags: -- -std=c++11
2
+ // bindgen-unstable
3
+
4
+ class Foo {
5
+ static constexpr auto kBar = 2 == 2 ;
6
+ };
You can’t perform that action at this time.
0 commit comments