File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -947,16 +947,16 @@ class FieldTypeMetadataBuilder : public ReflectionMetadataBuilder {
947
947
// Filter to select which fields we'll export FieldDescriptors for.
948
948
auto exportable_field =
949
949
[](Field field) {
950
- // Don't export private C++ fields that were imported as private Swift fields.
951
- // The type of a private field might not have all the type witness
952
- // operations that Swift requires, for instance,
953
- // `std::unique_ptr<IncompleteType>` would not have a destructor.
954
- if (field.getKind () == Field::Kind::Var &&
955
- field.getVarDecl ()->getClangDecl () &&
956
- field.getVarDecl ()->getFormalAccess () == AccessLevel::Private)
957
- return false ;
958
- // All other fields are exportable
959
- return true ;
950
+ // Don't export private C++ fields that were imported as private Swift fields.
951
+ // The type of a private field might not have all the type witness
952
+ // operations that Swift requires, for instance,
953
+ // `std::unique_ptr<IncompleteType>` would not have a destructor.
954
+ if (field.getKind () == Field::Kind::Var &&
955
+ field.getVarDecl ()->getClangDecl () &&
956
+ field.getVarDecl ()->getFormalAccess () == AccessLevel::Private)
957
+ return false ;
958
+ // All other fields are exportable
959
+ return true ;
960
960
};
961
961
962
962
// Count exportable fields
You can’t perform that action at this time.
0 commit comments