File tree 5 files changed +13
-3
lines changed
5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ before_script:
38
38
- echo $LIBCLANG_PATH
39
39
40
40
script :
41
- - cargo build
42
- - cargo build --verbose
41
+ - cargo build --verbose --features llvm_stable
43
42
- make test
44
43
- git add -A
45
44
- git diff-index --quiet HEAD
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ syntex_syntax = "0.32"
18
18
19
19
[features ]
20
20
static = []
21
+ llvm_stable = []
21
22
22
23
[lib ]
23
24
name = " bindgen"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ BINDGEN := ./target/debug/bindgen
9
9
10
10
.PHONY : $(BINDGEN )
11
11
$(BINDGEN ) :
12
- cargo build
12
+ [ -f $@ ] || cargo build
13
13
14
14
.PHONY : test
15
15
test : regen-tests
Original file line number Diff line number Diff line change @@ -135,10 +135,19 @@ impl Cursor {
135
135
}
136
136
}
137
137
138
+ #[ cfg( not( feature="llvm_stable" ) ) ]
138
139
pub fn is_inlined_function ( & self ) -> bool {
139
140
unsafe { clang_Cursor_isFunctionInlined ( self . x ) != 0 }
140
141
}
141
142
143
+ // TODO: Remove this when LLVM 3.9 is released.
144
+ //
145
+ // This is currently used for CI purposes.
146
+ #[ cfg( feature="llvm_stable" ) ]
147
+ pub fn is_inlined_function ( & self ) -> bool {
148
+ false
149
+ }
150
+
142
151
// bitfield
143
152
pub fn bit_width ( & self ) -> Option < u32 > {
144
153
unsafe {
Original file line number Diff line number Diff line change @@ -1109,6 +1109,7 @@ extern "C" {
1109
1109
pub fn clang_Type_getTemplateArgumentAsType ( T : CXType , i : c_int ) ->
1110
1110
CXType ;
1111
1111
pub fn clang_Cursor_isBitField ( C : CXCursor ) -> c_uint ;
1112
+ #[ cfg( not( feature="llvm_stable" ) ) ]
1112
1113
pub fn clang_Cursor_isFunctionInlined ( C : CXCursor ) -> c_uint ;
1113
1114
pub fn clang_isVirtualBase ( arg1 : CXCursor ) -> c_uint ;
1114
1115
pub fn clang_getCXXAccessSpecifier ( arg1 : CXCursor ) ->
You can’t perform that action at this time.
0 commit comments