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 @@ -932,16 +932,16 @@ class FieldTypeMetadataBuilder : public ReflectionMetadataBuilder {
932
932
// Filter to select which fields we'll export FieldDescriptors for.
933
933
auto exportable_field =
934
934
[](Field field) {
935
- // Don't export private C++ fields that were imported as private Swift fields.
936
- // The type of a private field might not have all the type witness
937
- // operations that Swift requires, for instance,
938
- // `std::unique_ptr<IncompleteType>` would not have a destructor.
939
- if (field.getKind () == Field::Kind::Var &&
940
- field.getVarDecl ()->getClangDecl () &&
941
- field.getVarDecl ()->getFormalAccess () == AccessLevel::Private)
942
- return false ;
943
- // All other fields are exportable
944
- return true ;
935
+ // Don't export private C++ fields that were imported as private Swift fields.
936
+ // The type of a private field might not have all the type witness
937
+ // operations that Swift requires, for instance,
938
+ // `std::unique_ptr<IncompleteType>` would not have a destructor.
939
+ if (field.getKind () == Field::Kind::Var &&
940
+ field.getVarDecl ()->getClangDecl () &&
941
+ field.getVarDecl ()->getFormalAccess () == AccessLevel::Private)
942
+ return false ;
943
+ // All other fields are exportable
944
+ return true ;
945
945
};
946
946
947
947
// Count exportable fields
You can’t perform that action at this time.
0 commit comments