Skip to content

Commit

Permalink
make regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
mrabiciu committed Feb 11, 2024
1 parent ce87a7e commit 8b366c4
Show file tree
Hide file tree
Showing 26 changed files with 1,001 additions and 1,315 deletions.
47 changes: 21 additions & 26 deletions FuzzTesting/Sources/FuzzCommon/fuzz_testing.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3859,52 +3859,52 @@ extension SwiftProtoTesting_Fuzz_Message: SwiftProtobuf.Message, SwiftProtobuf._
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = _storage._singularInt32 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularInt32 {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
} }()
try { if let v = _storage._singularInt64 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularInt64 {
try visitor.visitSingularInt64Field(value: v, fieldNumber: 2)
} }()
try { if let v = _storage._singularUint32 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularUint32 {
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
} }()
try { if let v = _storage._singularUint64 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularUint64 {
try visitor.visitSingularUInt64Field(value: v, fieldNumber: 4)
} }()
try { if let v = _storage._singularSint32 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularSint32 {
try visitor.visitSingularSInt32Field(value: v, fieldNumber: 5)
} }()
try { if let v = _storage._singularSint64 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularSint64 {
try visitor.visitSingularSInt64Field(value: v, fieldNumber: 6)
} }()
try { if let v = _storage._singularFixed32 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularFixed32 {
try visitor.visitSingularFixed32Field(value: v, fieldNumber: 7)
} }()
try { if let v = _storage._singularFixed64 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularFixed64 {
try visitor.visitSingularFixed64Field(value: v, fieldNumber: 8)
} }()
try { if let v = _storage._singularSfixed32 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularSfixed32 {
try visitor.visitSingularSFixed32Field(value: v, fieldNumber: 9)
} }()
try { if let v = _storage._singularSfixed64 ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularSfixed64 {
try visitor.visitSingularSFixed64Field(value: v, fieldNumber: 10)
} }()
try { if let v = _storage._singularFloat ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularFloat {
try visitor.visitSingularFloatField(value: v, fieldNumber: 11)
} }()
try { if let v = _storage._singularDouble ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = _storage._singularDouble {
try visitor.visitSingularDoubleField(value: v, fieldNumber: 12)
} }()
try { if let v = _storage._singularBool ?? (alwaysVisitPrimitiveFields ? false : nil) {
try { if let v = _storage._singularBool {
try visitor.visitSingularBoolField(value: v, fieldNumber: 13)
} }()
try { if let v = _storage._singularString ?? (alwaysVisitPrimitiveFields ? String() : nil) {
try { if let v = _storage._singularString {
try visitor.visitSingularStringField(value: v, fieldNumber: 14)
} }()
try { if let v = _storage._singularBytes ?? (alwaysVisitPrimitiveFields ? Data() : nil) {
try { if let v = _storage._singularBytes {
try visitor.visitSingularBytesField(value: v, fieldNumber: 15)
} }()
try { if let v = _storage._singularEnum ?? (alwaysVisitPrimitiveFields ? SwiftProtoTesting_Fuzz_AnEnum.zero : nil) {
try { if let v = _storage._singularEnum {
try visitor.visitSingularEnumField(value: v, fieldNumber: 16)
} }()
try { if let v = _storage._singularGroup {
Expand Down Expand Up @@ -5002,12 +5002,11 @@ extension SwiftProtoTesting_Fuzz_Message.SingularGroup: SwiftProtobuf.Message, S
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
let alwaysVisitPrimitiveFields = visitor.traversalOptions.alwaysVisitPrimitiveFields
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._groupField ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = self._groupField {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 18)
} }()
try unknownFields.traverse(visitor: &visitor)
Expand Down Expand Up @@ -5039,12 +5038,11 @@ extension SwiftProtoTesting_Fuzz_Message.RepeatedGroup: SwiftProtobuf.Message, S
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
let alwaysVisitPrimitiveFields = visitor.traversalOptions.alwaysVisitPrimitiveFields
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._groupField ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = self._groupField {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 48)
} }()
try unknownFields.traverse(visitor: &visitor)
Expand Down Expand Up @@ -5076,12 +5074,11 @@ extension SwiftProtoTesting_Fuzz_Message.OneofGroup: SwiftProtobuf.Message, Swif
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
let alwaysVisitPrimitiveFields = visitor.traversalOptions.alwaysVisitPrimitiveFields
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._groupField ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = self._groupField {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 78)
} }()
try unknownFields.traverse(visitor: &visitor)
Expand Down Expand Up @@ -5138,12 +5135,11 @@ extension SwiftProtoTesting_Fuzz_SingularGroup_ext: SwiftProtobuf.Message, Swift
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
let alwaysVisitPrimitiveFields = visitor.traversalOptions.alwaysVisitPrimitiveFields
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._groupField ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = self._groupField {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 1018)
} }()
try unknownFields.traverse(visitor: &visitor)
Expand Down Expand Up @@ -5175,12 +5171,11 @@ extension SwiftProtoTesting_Fuzz_RepeatedGroup_ext: SwiftProtobuf.Message, Swift
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
let alwaysVisitPrimitiveFields = visitor.traversalOptions.alwaysVisitPrimitiveFields
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every if/case branch local when no optimizations
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
// https://github.com/apple/swift-protobuf/issues/1182
try { if let v = self._groupField ?? (alwaysVisitPrimitiveFields ? 0 : nil) {
try { if let v = self._groupField {
try visitor.visitSingularInt32Field(value: v, fieldNumber: 1048)
} }()
try unknownFields.traverse(visitor: &visitor)
Expand Down
Loading

0 comments on commit 8b366c4

Please sign in to comment.