File tree 2 files changed +13
-11
lines changed
bindgen-tests/tests/parse_callbacks/item_discovery_callback
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -845,11 +845,11 @@ pub fn compare_method_info(
845
845
unreachable ! ( )
846
846
} ;
847
847
848
- if expected_parent != generated_parent
849
- || expected_cpp_explicit != generated_cpp_explicit
850
- || expected_cpp_special_member != generated_cpp_special_member
851
- || expected_cpp_virtual != generated_cpp_virtual
852
- || expected_cpp_visibility != generated_cpp_visibility
848
+ if expected_parent != generated_parent ||
849
+ expected_cpp_explicit != generated_cpp_explicit ||
850
+ expected_cpp_special_member != generated_cpp_special_member ||
851
+ expected_cpp_virtual != generated_cpp_virtual ||
852
+ expected_cpp_visibility != generated_cpp_visibility
853
853
{
854
854
return false ;
855
855
}
Original file line number Diff line number Diff line change @@ -3077,12 +3077,14 @@ impl Method {
3077
3077
utils:: call_discovered_item_callback ( ctx, function_item, || {
3078
3078
let cpp_virtual = match function. kind ( ) {
3079
3079
FunctionKind :: Function => None ,
3080
- FunctionKind :: Method ( method_kind) => if method_kind. is_pure_virtual ( ) {
3081
- Some ( Virtualness :: PureVirtual )
3082
- } else if method_kind. is_virtual ( ) {
3083
- Some ( Virtualness :: Virtual )
3084
- } else {
3085
- None
3080
+ FunctionKind :: Method ( method_kind) => {
3081
+ if method_kind. is_pure_virtual ( ) {
3082
+ Some ( Virtualness :: PureVirtual )
3083
+ } else if method_kind. is_virtual ( ) {
3084
+ Some ( Virtualness :: Virtual )
3085
+ } else {
3086
+ None
3087
+ }
3086
3088
}
3087
3089
} ;
3088
3090
DiscoveredItem :: Method {
You can’t perform that action at this time.
0 commit comments