Skip to content

[gardening] Fix accidental double spaces #1306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/Constraints/array_literal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ struct DoubleList : ArrayLiteralConvertible {
init(arrayLiteral elements: Double...) {}
}

struct IntDict : ArrayLiteralConvertible {
struct IntDict : ArrayLiteralConvertible {
typealias Element = (String, Int)
init(arrayLiteral elements: Element...) {}
}
Expand Down
2 changes: 1 addition & 1 deletion test/DebugInfo/bbentry-location.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ActionViewController
{
var imageView: UIImageView!
func viewDidLoad(inputItems: [AnyObject]) {
for item: AnyObject in inputItems {
for item: AnyObject in inputItems {
let inputItem = item as! NSExtensionItem
for provider: AnyObject in inputItem.attachments! {
let itemProvider = provider as! NSItemProvider
Expand Down
2 changes: 1 addition & 1 deletion test/Generics/associated_self_constraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Subject<T>: Observer, Observable {
// Observable implementation

func subscribe<O: Observer where O.Value == T>(observer: O) -> Any {
self.onNextFunc = { (item: T) -> Void in
self.onNextFunc = { (item: T) -> Void in
observer.onNext(item)
}

Expand Down
2 changes: 1 addition & 1 deletion test/IDE/annotation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ extension C12.Inn {}
// CHECK: extension <TypeAlias@[[@LINE-4]]:11>AliasC12</TypeAlias>.<TypeAlias@[[@LINE-6]]:13>AliasInn</TypeAlias> {}
extension AliasC12.AliasInn {}

typealias AliasPH = C12
typealias AliasPH = C12
func testPH(x: Int) {}
func testPH(x: AliasPH) {}
// CHECK: <Func@[[@LINE-1]]:6>testPH</Func>(<#T##x: AliasPH##AliasPH##C12#>)
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/complete_init.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protocol I : G {

typealias J = A

struct K {
struct K {
typealias X = A
struct Y {}
}
Expand Down
2 changes: 1 addition & 1 deletion test/Inputs/clang-importer-sdk/usr/include/Foundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -1006,5 +1006,5 @@ extern NSString *NSHTTPRequestKey;
-(void)messageSomeObject:(nonnull id)object selector:(SEL)selector;
@end

#define NSTimeIntervalSince1970 978307200.0
#define NSTimeIntervalSince1970 978307200.0
#define NS_DO_SOMETHING 17
2 changes: 1 addition & 1 deletion test/Interpreter/generics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Base {
}

class D1 : Base {
required init() {}
required init() {}
override func map() {
v = 2
}
Expand Down
2 changes: 1 addition & 1 deletion test/Parse/EOF/block-comment-missing-newline.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %target-parse-verify-swift

// This file does not end in a trailing newline; this is deliberate!
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{127-127=*/}}
/* unterminated block comment expected-note{{comment started here}} expected-error{{unterminated '/*' comment}}{{127-127=*/}}
4 changes: 2 additions & 2 deletions test/SILGen/Inputs/usr/include/BridgeTestFoundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ void noescapeNonnullBlock(__attribute__((noescape)) void (^_Nonnull block)(void)
void escapeNonnullBlock(void (^_Nonnull block)(void));

void noescapeBlockAlias(__attribute__((noescape)) dispatch_block_t block);
void noescapeNonnullBlockAlias(__attribute__((noescape)) _Nonnull dispatch_block_t block);
void escapeBlockAlias(dispatch_block_t block);
void noescapeNonnullBlockAlias(__attribute__((noescape)) _Nonnull dispatch_block_t block);
void escapeBlockAlias(dispatch_block_t block);
2 changes: 1 addition & 1 deletion test/SILGen/Inputs/usr/include/Gizmo.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct NSRect NSMakeRect(double, double, double, double);
struct NSRect NSInsetRect(struct NSRect, double, double);
NSString *NSStringFromRect(struct NSRect r);

typedef NS_ENUM(NSInteger, NSRuncingOptions) {
typedef NS_ENUM(NSInteger, NSRuncingOptions) {
NSRuncingMince = 123,
NSRuncingQuinceSliced = 4567,
NSRuncingQuinceJulienned = 5678,
Expand Down
4 changes: 2 additions & 2 deletions test/SILOptimizer/cast_foldings.sil
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ sil @function_cast_throw_to_throw : $@convention(thin) <T> () -> () {
// CHECK-NEXT: store %{{.*}} to %0 : $*AClass
sil @function_ref_cast_promote : $@convention(thin) (@out AClass, @in AnyObject) -> () {
bb0(%0 : $*AClass, %1 : $*AnyObject):
unchecked_ref_cast_addr AnyObject in %1 : $*AnyObject to AClass in %0 : $*AClass
unchecked_ref_cast_addr AnyObject in %1 : $*AnyObject to AClass in %0 : $*AClass
%4 = tuple ()
return %4 : $()
}
Expand All @@ -98,7 +98,7 @@ bb0:
%1 = alloc_stack $S
store %0 to %1 : $*S
%4 = alloc_stack $AnyObject
unchecked_ref_cast_addr S in %1 : $*S to AnyObject in %4 : $*AnyObject
unchecked_ref_cast_addr S in %1 : $*S to AnyObject in %4 : $*AnyObject
%6 = load %4 : $*AnyObject
dealloc_stack %4 : $*AnyObject
dealloc_stack %1 : $*S
Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/definite_init_crashes.sil
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Single {
}

// CHECK-LABEL: sil @SingleTest
sil @SingleTest : $@convention(method) (@inout Single, Int) -> Single {
sil @SingleTest : $@convention(method) (@inout Single, Int) -> Single {
bb0(%0 : $*Single, %1 : $Int):
%4 = alloc_box $Single
%4a = project_box %4 : $@box Single
Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/escape_analysis.sil
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ bb0(%0 : $AnyObject):
// CHECK-NEXT: End
sil @test_unchecked_ref_cast_addr : $@convention(thin) <T, U> (@out U, @in T, @thick U.Type) -> () {
bb0(%0 : $*U, %1 : $*T, %2 : $@thick U.Type):
unchecked_ref_cast_addr T in %1 : $*T to U in %0 : $*U
unchecked_ref_cast_addr T in %1 : $*T to U in %0 : $*U
%5 = tuple ()
return %5 : $()
}
Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/spec_recursion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ x1.new_method(<, left: 0, right: 1)

struct Test<T> {
init() {}
func recursive(x x : T) {
func recursive(x x : T) {
return recursive(x: x)
}
}
Expand Down
4 changes: 2 additions & 2 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,9 @@ while [[ "$1" ]] ; do
if [[ "${dashless}" == *=* ]] ; then # if there's an '=', the value
value="${dashless#*=}" # is everything after the first '='
elif [[ "$2" ]] && [[ "${2:0:1}" != "-" ]] ; then # else if the next parameter exists
value="$2" # but isn't an option, use that
value="$2" # but isn't an option, use that
shift
else # otherwise, the value is 1
else # otherwise, the value is 1
value=1
fi

Expand Down