Skip to content

Commit d9faff1

Browse files
committed
Add comments to testcases that need spurious whitespace
1 parent e298573 commit d9faff1

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

test/ClangImporter/AllowErrors/invalid-pch-bridging-header.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ struct InnerTy {
4646
//--- use.swift
4747
func use(s: SomeTy, s2: InnerTy) {}
4848

49-
49+
// Note: extra newlines below ensure that context printing doesn't show the
50+
// lines that we shouldn't see.
5051

5152

5253
// MISSING_HMAP-NOT: cannot find type 'SomeTy' in scope

test/Frontend/invalid-testable-import.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
x = 8
88

9+
// Note: extra newlines below ensure that context printing doesn't show the
10+
// lines that we shouldn't see.
911

1012

1113
// CHECK-NOT: cannot find 'x' in scope

test/NameLookup/nonempty-brace-in-brace.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ public struct Foo {
99

1010
private extension String {}
1111

12+
// Note: extra newlines below ensure that context printing doesn't show the
13+
// lines that we shouldn't see.
1214

1315

1416

test/Parse/structure_overflow.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
;blah blah blah
99

10+
// Note: extra newlines below ensure that context printing doesn't show the
11+
// lines that we shouldn't see.
1012

1113

1214

test/Serialization/implementation-only-testable.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ internal func dependsOnHiddenType() -> HiddenType { fatalError() }
5252
/// needs to enable testing. We may want to improve upon this in the future.
5353
import TestedLib
5454

55+
// Note: extra newlines below ensure that context printing doesn't show the
56+
// lines that we shouldn't see.
5557

5658

5759
// CHECK-NOT-LOADED-NOT: remark: loaded module 'HiddenDep'

test/Serialization/spi-only-dependency.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
import Lib
4040

41+
// Note: extra newlines below ensure that context printing doesn't show the
42+
// lines that we shouldn't see.
4143

4244

4345

0 commit comments

Comments
 (0)