Skip to content

Commit 5b25146

Browse files
committed
Delete trailing whitespaces
NFC
1 parent 85d6d3f commit 5b25146

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Sources/FileCheck/CheckString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ struct CheckString {
285285
// Update the last position with CHECK-DAG matches.
286286
lastPos = max(matchPos + range.length, lastPos)
287287
}
288-
288+
289289
return (lastPos, notStrings, finalTable)
290290
}
291291
}

Sources/FileCheck/FileCheck.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public func fileCheckOutput(
145145
print("FileCheck error: input from file descriptor \(FD) is empty.")
146146
return false
147147
}
148-
148+
149149
return true
150150
}
151151

@@ -589,12 +589,12 @@ private func check(
589589
variableTable = mutVarTable
590590
checkRegion = checkRegion[checkRegion.index(checkRegion.startIndex, offsetBy: NSMaxRange(range))...]
591591
}
592-
592+
593593
if j == checkStrings.count {
594594
break
595595
}
596596
}
597-
597+
598598
// Success if no checks failed.
599599
return !failedChecks
600600
}

Sources/FileCheck/Pattern.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func countNewlines(in str : String) -> (count: Int, firstIndex: String.Index?) {
464464
// Range = Range.substr(1)
465465
// }
466466
range = range[range.index(after: range.startIndex)...]
467-
467+
468468
if newlineCount == 1 {
469469
firstNewLine = range.startIndex
470470
}

Tests/FileCheckTests/DAGSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DAGSpec : XCTestCase {
1414
print("this is the string to be matched")
1515
})
1616
}
17-
17+
1818
func testDAGWithInst() {
1919
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CHECK-INSTDAG"]) {
2020
// CHECK-INSTDAG-DAG: add [[REG1:r[0-9]+]], r1, r2

Tests/FileCheckTests/LabelSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class LabelSpec : XCTestCase {
1818
"c",
1919
].joined(separator: "\n"))
2020
}
21-
21+
2222
func testLabels() {
2323
XCTAssert(fileCheckOutput(of: .stdout, withPrefixes: ["CHECKOK"]) {
2424
// CHECKOK-LABEL: {{^}}label0:

Tests/FileCheckTests/VariableRefSpec.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class VariableRefSpec : XCTestCase {
1414
print("op4 g1, g2, g1")
1515
})
1616
}
17-
17+
1818
#if !os(macOS)
1919
static var allTests = testCase([
2020
("testSameLineVarRef", testSameLineVarRef),

0 commit comments

Comments
 (0)