Skip to content

Commit a41a501

Browse files
Merge pull request #8835 from practicalswift/gardening-20170418
[gardening] Fix URLs. Fix spacing. Remove unused methods. Fix headers.
2 parents 347da5a + 74f8c89 commit a41a501

28 files changed

+26
-38
lines changed

benchmark/single-source/DropFirst.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DropFirst.swift --------------------------------------------------===//
1+
//===--- DropFirst.swift --------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/DropLast.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DropLast.swift ---------------------------------------------------===//
1+
//===--- DropLast.swift ---------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/DropWhile.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DropWhile.swift --------------------------------------------------===//
1+
//===--- DropWhile.swift --------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/Prefix.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Prefix.swift -----------------------------------------------------===//
1+
//===--- Prefix.swift -----------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/PrefixWhile.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- PrefixWhile.swift ------------------------------------------------===//
1+
//===--- PrefixWhile.swift ------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/StringEdits.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- StringEdits.swift ------------------------------------*- swift -*-===//
1+
//===--- StringEdits.swift ------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

benchmark/single-source/Suffix.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Suffix.swift -----------------------------------------------------===//
1+
//===--- Suffix.swift -----------------------------------------*- swift -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/Migrator/FixitApplyDiagnosticConsumer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- FixitApplyDiagnosticConsumer.h - ----------------------*- C++ -*-===//
1+
//===--- FixitApplyDiagnosticConsumer.h - -----------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/Migrator/MigrationState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- MigrationState.h - Migration State --------------------*- C++ -*-===//
1+
//===--- MigrationState.h - Migration State ---------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/Migrator/MigratorOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Migrator.h - Swift Migrator ----------------------------*- C++ -*-===//
1+
//===--- MigratorOptions.h - Swift Migrator ---------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/SIL/OwnershipChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- OwnershipChecker.h -----------------------------------------------===//
1+
//===--- OwnershipChecker.h -------------------------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
323323
Action = FrontendOptions::REPL;
324324
} else if (Opt.matches(OPT_interpret)) {
325325
Action = FrontendOptions::Immediate;
326-
} else if(Opt.matches(OPT_update_code)) {
326+
} else if (Opt.matches(OPT_update_code)) {
327327
Action = FrontendOptions::UpdateCode;
328328
} else {
329329
llvm_unreachable("Unhandled mode option");

lib/IDE/APIDigesterData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ serializeDiffItem(llvm::BumpPtrAllocator &Alloc,
262262
}
263263
}
264264
}
265-
}// End of anonymous namespace.
265+
} // end anonymous namespace
266266

267267
namespace swift {
268268
namespace json {

lib/Migrator/FixitApplyDiagnosticConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- FixitApplyDiagnosticConsumer.cpp -----------------------*- C++ -*-===//
1+
//===--- FixitApplyDiagnosticConsumer.cpp ---------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/Migrator/MigrationState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- MigrationState.cpp ------------------------------------*- C++ -*-===//
1+
//===--- MigrationState.cpp -----------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/Migrator/Migrator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Migrator.cpp ------------------------------------------*- C++ -*-===//
1+
//===--- Migrator.cpp -----------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/Migrator/Replacement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- Replacement.cpp ----------------------------------------*- C++ -*-===//
1+
//===--- Replacement.cpp --------------------------------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/SIL/SILDebugScope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- SILDebugScope.h - DebugScopes for SIL code -------------*- C++ -*-===//
1+
//===--- SILDebugScope.cpp - DebugScopes for SIL code ---------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/SIL/ValueOwnershipKindClassifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- ValueOwnershipKindClassifier.h -----------------------------------===//
1+
//===--- ValueOwnershipKindClassifier.h -------------------------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/SILOptimizer/Mandatory/DIMemoryUseCollectorOwnership.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DIMemoryUseCollector.cpp - Memory use analysis for DI ------------===//
1+
//===--- DIMemoryUseCollectorOwnership.cpp - Memory use analysis for DI ---===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/SILOptimizer/Mandatory/DIMemoryUseCollectorOwnership.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DIMemoryUseCollector.h - Memory use information for DI -*- C++ -*-===//
1+
//===--- DIMemoryUseCollectorOwnership.h - Mem. use info for DI -*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/TBDGen/TBDGen.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,6 @@ void TBDGenVisitor::visitNominalTypeDecl(NominalTypeDecl *NTD) {
232232
visitMembers(NTD);
233233
}
234234

235-
template <typename T> bool isaAnd(Decl *D, llvm::function_ref<bool(T *)> f) {
236-
if (auto *x = dyn_cast_or_null<T>(D))
237-
return f(x);
238-
239-
return false;
240-
}
241-
242235
void TBDGenVisitor::visitClassDecl(ClassDecl *CD) {
243236
if (isPrivateDecl(CD))
244237
return;

test/Prototypes/BigInt.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
8-
// See http://swift.org/LICENSE.txt for license information
9-
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
1212
// XFAIL: linux

test/stdlib/Integers.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

test/stdlib/MixedTypeArithmeticsDiagnostics3.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- MixedTypeArithmeticsDiagnostics.swift ----------------------------===//
1+
//===--- MixedTypeArithmeticsDiagnostics3.swift ---------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

test/stdlib/MixedTypeArithmeticsDiagnostics4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- MixedTypeArithmeticsDiagnostics.swift ----------------------------===//
1+
//===--- MixedTypeArithmeticsDiagnostics4.swift ---------------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

utils/SwiftIntTypes.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,6 @@ def all_integer_or_real_binary_operator_names():
121121
return ['*', '/', '+', '-', '..<', '...']
122122

123123

124-
def all_arithmetic_comparison_operator_names():
125-
return ['<', '<=', '>', '>=', '==', '!=']
126-
127-
128124
def all_integer_assignment_operator_names():
129125
return ['%=', '<<=', '>>=', '&=', '^=', '|=']
130126

validation-test/compiler_crashers_fixed/28732-type-hasarchetype-not-fully-substituted.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// See https://swift.org/LICENSE.txt for license information
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

8-
// REQUIRES: asserts
98
// RUN: not %target-swift-frontend %s -emit-ir
109
{
1110
protocol A{

0 commit comments

Comments
 (0)