Skip to content

Commit e29398d

Browse files
committed
Merge pull request #388 from wxxsw/whitespaces
Erase redundant whitespaces.
2 parents 447c986 + 7ac02d5 commit e29398d

File tree

21 files changed

+24
-24
lines changed

21 files changed

+24
-24
lines changed

include/swift/Basic/JSONSerialization.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ struct missingTraits : public std::integral_constant<bool,
284284
&& !has_ScalarBitSetTraits<T>::value
285285
&& !has_ScalarTraits<T>::value
286286
&& !has_ObjectTraits<T>::value
287-
&& !has_ArrayTraits<T>::value> {};
287+
&& !has_ArrayTraits<T>::value> {};
288288

289289
template<typename T>
290290
struct validatedObjectTraits : public std::integral_constant<bool,

include/swift/Driver/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace llvm {
7575
}
7676

7777
template <typename Fn>
78-
void swift::driver::types::forAllTypes(const Fn &fn) {
78+
void swift::driver::types::forAllTypes(const Fn &fn) {
7979
static_assert(std::is_constructible<std::function<void(types::ID)>,Fn>::value,
8080
"must have the signature 'void(types::ID)'");
8181
for (uint8_t i = 0; i < static_cast<uint8_t>(TY_INVALID); ++i)

include/swift/SIL/PatternMatch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ using BuiltinApplyTy = typename Apply_match<BuiltinValueKind, Tys...>::Ty;
691691
/// Matcher for any of the builtin checked conversions.
692692
template <typename T0>
693693
inline typename OneOf_match<BuiltinApplyTy<T0>, BuiltinApplyTy<T0>>::Ty
694-
m_CheckedConversion(const T0 &Op0) {
694+
m_CheckedConversion(const T0 &Op0) {
695695
return m_USCheckedConversion(Op0) || m_SUCheckedConversion(Op0);
696696
}
697697

include/swift/SILAnalysis/BottomUpIPAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class BottomUpIPAnalysis : public SILAnalysis {
148148
};
149149

150150
/// Computes and stores a bottom-up function order.
151-
template<typename FunctionInfo> class BottomUpFunctionOrder {
151+
template<typename FunctionInfo> class BottomUpFunctionOrder {
152152

153153
typedef llvm::SmallVector<FunctionInfo *, 8> FunctionInfoList;
154154

lib/AST/Module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class SourceFile::LookupCache {
119119
Members.shrink_and_clear();
120120
}
121121

122-
decltype(Members)::const_iterator begin() const { return Members.begin(); }
122+
decltype(Members)::const_iterator begin() const { return Members.begin(); }
123123
decltype(Members)::const_iterator end() const { return Members.end(); }
124124
decltype(Members)::const_iterator find(DeclName Name) const {
125125
return Members.find(Name);
@@ -1530,7 +1530,7 @@ bool SourceFile::walk(ASTWalker &walker) {
15301530
return false;
15311531
}
15321532

1533-
StringRef SourceFile::getFilename() const {
1533+
StringRef SourceFile::getFilename() const {
15341534
if (BufferID == -1)
15351535
return "";
15361536
SourceManager &SM = getASTContext().SourceMgr;

lib/IDE/SyntaxModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ std::pair<bool, Stmt *> ModelASTWalker::walkToStmtPre(Stmt *S) {
666666
TokLen = 7; // '#elseif'
667667
if (!passNonTokenNode({SyntaxNodeKind::BuildConfigKeyword,
668668
CharSourceRange(Clause.Loc, TokLen) }))
669-
return { false, nullptr };
669+
return { false, nullptr };
670670

671671
if (Clause.Cond && !annotateIfConfigConditionIdentifiers(Clause.Cond))
672672
return { false, nullptr };

lib/Sema/CSRanking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ ConstraintSystem::findBestSolution(SmallVectorImpl<Solution> &viable,
12521252
return None;
12531253
}
12541254

1255-
SolutionDiff::SolutionDiff(ArrayRef<Solution> solutions) {
1255+
SolutionDiff::SolutionDiff(ArrayRef<Solution> solutions) {
12561256
if (solutions.size() <= 1)
12571257
return;
12581258

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class AttributeEarlyChecker : public AttributeVisitor<AttributeEarlyChecker> {
9595
void visitTransparentAttr(TransparentAttr *attr);
9696
void visitMutationAttr(DeclAttribute *attr);
9797
void visitMutatingAttr(MutatingAttr *attr) { visitMutationAttr(attr); }
98-
void visitNonMutatingAttr(NonMutatingAttr *attr) { visitMutationAttr(attr); }
98+
void visitNonMutatingAttr(NonMutatingAttr *attr) { visitMutationAttr(attr); }
9999
void visitDynamicAttr(DynamicAttr *attr);
100100

101101
void visitOwnershipAttr(OwnershipAttr *attr) {

stdlib/public/core/ArrayBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ extension _ArrayBuffer {
175175
element is Element,
176176
"Down-casted Array element failed to match the target type")
177177
}
178-
else {
178+
else {
179179
let ns = _nonNative
180180
_precondition(
181181
ns.objectAtIndex(index) is Element,

stdlib/public/core/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ extension String : _BuiltinUTF16StringLiteralConvertible {
208208
public init(
209209
_builtinUTF16StringLiteral start: Builtin.RawPointer,
210210
numberOfCodeUnits: Builtin.Word
211-
) {
211+
) {
212212
self = String(
213213
_StringCore(
214214
baseAddress: COpaquePointer(start),

0 commit comments

Comments
 (0)