Skip to content

Commit 861f70e

Browse files
[gardening] Use consistent spacing
1 parent c0104a2 commit 861f70e

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

include/swift/ABI/System.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
// Weak references use a marker to tell when they are controlled by
6060
// the ObjC runtime and when they are controlled by the Swift runtime.
6161
// Non-ObjC platforms don't use this marker.
62-
#define SWIFT_ABI_DEFAULT_OBJC_WEAK_REFERENCE_MARKER_MASK 0
62+
#define SWIFT_ABI_DEFAULT_OBJC_WEAK_REFERENCE_MARKER_MASK 0
6363
#define SWIFT_ABI_DEFAULT_OBJC_WEAK_REFERENCE_MARKER_VALUE 0
6464

6565
/*********************************** i386 *************************************/

include/swift/Runtime/Config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@
134134
#define SWIFT_LLVM_CC_RegisterPreservingCC llvm::CallingConv::PreserveMost
135135

136136
#if SWIFT_USE_SWIFTCALL
137-
#define SWIFT_LLVM_CC_SwiftCC llvm::CallingConv::Swift
137+
#define SWIFT_LLVM_CC_SwiftCC llvm::CallingConv::Swift
138138
#else
139-
#define SWIFT_LLVM_CC_SwiftCC llvm::CallingConv::C
139+
#define SWIFT_LLVM_CC_SwiftCC llvm::CallingConv::C
140140
#endif
141141

142142
// If defined, it indicates that runtime function wrappers

lib/IDE/SwiftSourceDocInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ getCallArgLabelRanges(SourceManager &SM, Expr *Arg) {
918918
std::vector<CharSourceRange> Ranges;
919919
if (TupleExpr *TE = dyn_cast<TupleExpr>(Arg)) {
920920
size_t ElemIndex = 0;
921-
for(Expr *Elem: TE->getElements()) {
921+
for (Expr *Elem : TE->getElements()) {
922922
SourceLoc LabelStart(Elem->getStartLoc());
923923
SourceLoc LabelEnd(LabelStart);
924924

lib/Index/Index.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
310310
if (NameLoc.isCompound()) {
311311
size_t LabelIndex = 0;
312312
SourceLoc ArgLoc;
313-
while((ArgLoc = NameLoc.getArgumentLabelLoc(LabelIndex++)).isValid()) {
313+
while ((ArgLoc = NameLoc.getArgumentLabelLoc(LabelIndex++)).isValid()) {
314314
LabelLocs.push_back(ArgLoc);
315315
}
316316
} else if (auto *CallParent = dyn_cast_or_null<CallExpr>(getParentExpr())) {
@@ -327,7 +327,7 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
327327
return;
328328

329329
auto LabelIt = LabelLocs.begin();
330-
for(auto Prop : TypeContext->getStoredProperties()) {
330+
for (auto Prop : TypeContext->getStoredProperties()) {
331331
if (Prop->getParentInitializer() && Prop->isLet())
332332
continue;
333333

lib/SILOptimizer/Mandatory/ConstantPropagation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static SILInstruction *constantFoldCompare(BuiltinInst *BI,
318318
}
319319
}
320320

321-
// At the same time (x>>n) > Int.max and Int.max < (x>>n) is false.
321+
// At the same time (x>>n) > Int.max and Int.max < (x>>n) is false.
322322
if (match(BI,
323323
m_CombineOr(
324324
// Int.max < x

lib/SILOptimizer/Mandatory/DiagnoseStaticExclusivity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ObjectProjection {
9595
///
9696
/// The key invariant that this class must maintain is that if it says
9797
/// two storage locations are the same then they must be the same at run time.
98-
/// It is allowed to err on the other side: it may imprecisely fail to
98+
/// It is allowed to err on the other side: it may imprecisely fail to
9999
/// recognize that two storage locations that represent the same run-time
100100
/// location are in fact the same.
101101
class AccessedStorage {

stdlib/private/StdlibCollectionUnittest/CheckMutableCollectionType.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func checkSortedPredicateThrow(
489489
result = try c.sorted {
490490
(lhs, rhs) throws -> Bool in
491491
_blackHole(closureLifetimeTracker)
492-
if throwElement == extractValue(rhs).value {
492+
if throwElement == extractValue(rhs).value {
493493
thrown = true
494494
throw SillyError.JazzHands
495495
}
@@ -1005,7 +1005,7 @@ func checkSortPredicateThrow(
10051005
try c.sort {
10061006
(lhs, rhs) throws -> Bool in
10071007
_blackHole(closureLifetimeTracker)
1008-
if throwElement == extractValue(rhs).value {
1008+
if throwElement == extractValue(rhs).value {
10091009
throw SillyError.JazzHands
10101010
}
10111011
return lessImpl(extractValue(lhs).value, extractValue(rhs).value)

test/SILOptimizer/capture_promotion_generic_context.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct R<T> {
8585
// CHECK: switch_enum %2 : $E<(R<T>) -> Builtin.Int32>
8686
// CHECK-NOT: project_box
8787
// CHECK: } // end sil function '_T023generic_promotable_box2Tf2nni_n'
88-
sil @generic_promotable_box2 : $@convention(thin) <T> (@in R<T>, @in Int, <τ_0_0> { var E<(R<τ_0_0>) -> Int> } <T>) -> () {
88+
sil @generic_promotable_box2 : $@convention(thin) <T> (@in R<T>, @in Int, <τ_0_0> { var E<(R<τ_0_0>) -> Int> } <T>) -> () {
8989
entry(%0: $*R<T>, %1 : $*Int, %b : $<τ_0_0> { var E< (R<τ_0_0>)->Int > } <T>):
9090
%a = project_box %b : $<τ_0_0> { var E<(R<τ_0_0>)->Int> } <T>, 0
9191
%e = load %a : $*E<(R<T>)->Int>

test/SILOptimizer/constant_propagation.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ bb0:
307307

308308
// For any x of the same size as Int.max and n>=1 , (x>>n) is always <= Int.max,
309309
// that is (x>>n) <= Int.max and Int.max >= (x>>n) are true.
310-
// At the same time (x>>n) > Int.max and Int.max < (x>>n) is always false.
310+
// At the same time (x>>n) > Int.max and Int.max < (x>>n) is always false.
311311
sil @fold_cmp_lshr_with_IntMax : $@convention(thin) (Builtin.Int64) -> Builtin.Int64 {
312312
bb0(%0 : $Builtin.Int64):
313313
%1 = integer_literal $Builtin.Int64, 9223372036854775807

0 commit comments

Comments
 (0)