Skip to content

Commit bc09af3

Browse files
authored
Merge pull request #3592 from practicalswift/trailing-semicolon
[gardening] Remove trailing semicolons.
2 parents 7fec6ec + 8287c5d commit bc09af3

File tree

11 files changed

+19
-19
lines changed

11 files changed

+19
-19
lines changed

benchmark/single-source/Ackermann.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Ackermann(_ M: Int, _ N : Int) -> Int {
3030
return ackermann(M - 1, ackermann(M, N - 1))
3131
}
3232

33-
let ref_result = [5, 13, 29, 61, 125, 253, 509, 1021, 2045, 4093, 8189, 16381, 32765, 65533, 131069];
33+
let ref_result = [5, 13, 29, 61, 125, 253, 509, 1021, 2045, 4093, 8189, 16381, 32765, 65533, 131069]
3434

3535
@inline(never)
3636
public func run_Ackermann(_ N: Int) {

benchmark/single-source/DictTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public func run_Dictionary(scale: Int) {
119119
for _ in 1...N {
120120
Dict = [:]
121121
for word in Input {
122-
Dict[word] = true;
122+
Dict[word] = true
123123
}
124124
}
125125
CheckResults(Dict.count == 270,
@@ -272,7 +272,7 @@ public func run_DictionaryOfObjects(scale: Int) {
272272
for _ in 1...N {
273273
Dict = [:]
274274
for word in Input {
275-
Dict[Box(word)] = Box(true);
275+
Dict[Box(word)] = Box(true)
276276
}
277277
}
278278
CheckResults(Dict.count == 270,

benchmark/single-source/Histogram.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ let samples: [rrggbb_t] = [
110110

111111
@inline(never)
112112
public func run_Histogram(_ N: Int) {
113-
output_sorted_sparse_rgb_histogram(samples, N);
113+
output_sorted_sparse_rgb_histogram(samples, N)
114114
}

benchmark/single-source/Integrate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import TestsUtils
1616
// The program performs integration via Gaussian Quadrature
1717

1818
class Integrate {
19-
static let epsilon = 1.0e-9;
19+
static let epsilon = 1.0e-9
2020

21-
let fun: (Double) -> Double;
21+
let fun: (Double) -> Double
2222

2323
init (f: (Double) -> Double) {
24-
fun = f;
24+
fun = f
2525
}
2626

2727
private func recEval(_ l: Double, fl: Double, r: Double, fr: Double, a: Double) -> Double {
@@ -50,7 +50,7 @@ class Integrate {
5050

5151
@inline(never)
5252
public func run_Integrate(_ N: Int) {
53-
let obj = Integrate(f: { x in (x*x + 1.0) * x});
53+
let obj = Integrate(f: { x in (x*x + 1.0) * x})
5454
let left = 0.0
5555
let right = 10.0
5656
let ref_result = 2550.0

benchmark/single-source/NopDeinit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class X<T : Comparable> {
1919
init(_ x : T) {elem = x}
2020
deinit {
2121
for _ in 1...deinitIters {
22-
if (elem > elem) { };
22+
if (elem > elem) { }
2323
}
2424
}
2525
}

benchmark/single-source/Phonebook.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public func run_Phonebook(_ N: Int) {
6969
}
7070
}
7171
for _ in 1...N {
72-
var t = Names;
72+
var t = Names
7373
t.sort()
7474
}
7575
}

benchmark/single-source/PolymorphicCalls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class B {
6161
public class A1 {
6262
let b: B1
6363
public init(b:B1) {
64-
self.b = b;
64+
self.b = b
6565
}
6666
public func run1() -> Int {
6767
return b.f1() + b.f2() + b.f3()

benchmark/single-source/SetTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public func run_SetIsSubsetOf(_ N: Int) {
2626
otherSet.insert(Int(truncatingBitPattern: Random()))
2727
}
2828

29-
var isSubset = false;
29+
var isSubset = false
3030
for _ in 0 ..< N * 5000 {
3131
isSubset = set.isSubset(of: otherSet)
3232
if isSubset {
@@ -137,7 +137,7 @@ public func run_SetIsSubsetOf_OfObjects(_ N: Int) {
137137
otherSet.insert(Box(Int(truncatingBitPattern: Random())))
138138
}
139139

140-
var isSubset = false;
140+
var isSubset = false
141141
for _ in 0 ..< N * 5000 {
142142
isSubset = set.isSubset(of: otherSet)
143143
if isSubset {

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Darwin
2424
let RequestInstanceKind = "k"
2525
let RequestInstanceAddress = "i"
2626
let RequestReflectionInfos = "r"
27-
let RequestReadBytes = "b";
27+
let RequestReadBytes = "b"
2828
let RequestSymbolAddress = "s"
2929
let RequestStringLength = "l"
3030
let RequestDone = "d"
@@ -282,9 +282,9 @@ internal func reflect(instanceAddress: UInt, kind: InstanceKind) {
282282
case String(validatingUTF8: RequestStringLength)!:
283283
sendStringLength()
284284
case String(validatingUTF8: RequestPointerSize)!:
285-
sendPointerSize();
285+
sendPointerSize()
286286
case String(validatingUTF8: RequestDone)!:
287-
return;
287+
return
288288
default:
289289
fatalError("Unknown request received: '\(Array(command.utf8))'!")
290290
}

stdlib/public/SDK/Dispatch/Data.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public struct DispatchData : RandomAccessCollection, _ObjectiveCBridgeable {
7171
body: @noescape (UnsafePointer<ContentType>) throws -> Result) rethrows -> Result
7272
{
7373
var ptr: UnsafePointer<Void>? = nil
74-
var size = 0;
74+
var size = 0
7575
let data = __dispatch_data_create_map(__wrapped, &ptr, &size)
7676
defer { _fixLifetime(data) }
7777
return try body(UnsafePointer<ContentType>(ptr!))
@@ -247,7 +247,7 @@ public struct DispatchDataIterator : IteratorProtocol, Sequence {
247247
/// - Precondition: No preceding call to `self.next()` has returned `nil`.
248248
public mutating func next() -> DispatchData._Element? {
249249
if _position == _count { return nil }
250-
let element = _ptr[_position];
250+
let element = _ptr[_position]
251251
_position = _position + 1
252252
return element
253253
}

stdlib/public/SDK/simd/simd.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ public func +=(lhs: inout ${mattype}, rhs: ${mattype}) -> Void {
798798
}
799799
800800
public func -=(lhs: inout ${mattype}, rhs: ${mattype}) -> Void {
801-
lhs = lhs - rhs;
801+
lhs = lhs - rhs
802802
}
803803
804804
/// Scalar-Matrix multiplication.

0 commit comments

Comments
 (0)