Skip to content

Commit 7bf8623

Browse files
committed
[AST] Clean up whitespace
1 parent 7ac0a5b commit 7bf8623

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/swift/AST/Decl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,10 @@ class alignas(1 << DeclAlignInBits) Decl {
520520
KnownProtocol : 8, // '8' for speed. This only needs 6.
521521

522522
/// The number of requirements in the requirement signature.
523-
NumRequirementsInSignature : 16,
523+
NumRequirementsInSignature : 16,
524524

525-
/// Whether we are currently computing inherited protocols.
526-
ComputingInheritedProtocols : 1
525+
/// Whether we are currently computing inherited protocols.
526+
ComputingInheritedProtocols : 1
527527
);
528528

529529
SWIFT_INLINE_BITFIELD(ClassDecl, NominalTypeDecl, 1+2+1+2+1+3+1+1,

lib/AST/Decl.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ ProtocolDecl::ProtocolDecl(DeclContext *DC, SourceLoc ProtocolLoc,
31703170
Bits.ProtocolDecl.NumRequirementsInSignature = 0;
31713171
Bits.ProtocolDecl.HasMissingRequirements = false;
31723172
Bits.ProtocolDecl.KnownProtocol = 0;
3173-
Bits.ProtocolDecl.ComputingInheritedProtocols = false;
3173+
Bits.ProtocolDecl.ComputingInheritedProtocols = false;
31743174
}
31753175

31763176
llvm::TinyPtrVector<ProtocolDecl *>
@@ -3181,10 +3181,10 @@ ProtocolDecl::getInheritedProtocols() const {
31813181
// We shouldn't need this, but it shows up in recursive invocations.
31823182
if (!isRequirementSignatureComputed()) {
31833183
SmallPtrSet<ProtocolDecl *, 4> known;
3184-
if (Bits.ProtocolDecl.ComputingInheritedProtocols) return result;
3184+
if (Bits.ProtocolDecl.ComputingInheritedProtocols) return result;
31853185

3186-
auto *self = const_cast<ProtocolDecl *>(this);
3187-
self->Bits.ProtocolDecl.ComputingInheritedProtocols = true;
3186+
auto *self = const_cast<ProtocolDecl *>(this);
3187+
self->Bits.ProtocolDecl.ComputingInheritedProtocols = true;
31883188
for (unsigned index : indices(getInherited())) {
31893189
if (auto type = getInheritedType(index)) {
31903190
// Only protocols can appear in the inheritance clause
@@ -3200,7 +3200,7 @@ ProtocolDecl::getInheritedProtocols() const {
32003200
}
32013201
}
32023202
}
3203-
self->Bits.ProtocolDecl.ComputingInheritedProtocols = false;
3203+
self->Bits.ProtocolDecl.ComputingInheritedProtocols = false;
32043204
return result;
32053205
}
32063206

0 commit comments

Comments
 (0)