@@ -68,7 +68,7 @@ collectNameTypeMap(Type Ty, const DeclContext *DC) {
68
68
assert(ParamDecls.size() == Args.size());
69
69
70
70
// Map type parameter names with their instantiating arguments.
71
- for(unsigned I = 0, N = ParamDecls.size(); I < N; I ++) {
71
+ for (unsigned I = 0, N = ParamDecls.size(); I < N; I ++) {
72
72
(*IdMap)[ParamDecls[I]->getName().str()] = Args[I];
73
73
}
74
74
} while ((BaseTy = BaseTy->getSuperclass(nullptr)));
@@ -154,7 +154,7 @@ class ArchetypeSelfTransformer : public PrinterArchetypeTransformer {
154
154
auto ATT = cast<ArchetypeType>(Ty.getPointer());
155
155
ArchetypeType *Self = ATT;
156
156
std::vector<Identifier> Names;
157
- for(; Self->getParent(); Self = Self->getParent()) {
157
+ for (; Self->getParent(); Self = Self->getParent()) {
158
158
Names.insert(Names.begin(), Self->getName());
159
159
}
160
160
if (!Self->getSelfProtocol() || Names.empty())
@@ -371,7 +371,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
371
371
Text = Text.trim();
372
372
auto ParamStart = Text.find_first_of('<');
373
373
auto ParamEnd = Text.find_last_of('>');
374
- if(StringRef::npos == ParamStart) {
374
+ if (StringRef::npos == ParamStart) {
375
375
return checkElementType(Text);
376
376
}
377
377
Type GenericType = checkElementType(StringRef(Text.data(), ParamStart));
@@ -461,7 +461,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
461
461
auto Written = Req.getAsWrittenString();
462
462
switch (Kind) {
463
463
case RequirementReprKind::TypeConstraint:
464
- if(!canPossiblyConvertTo(First, Second, *DC))
464
+ if (!canPossiblyConvertTo(First, Second, *DC))
465
465
return {Result, MergeInfo};
466
466
else if (isConvertibleTo(First, Second, *DC))
467
467
Result.KnownSatisfiedRequirements.push_back(Written);
@@ -546,7 +546,7 @@ struct SynthesizedExtensionAnalyzer::Implementation {
546
546
for (auto TL : Target->getInherited()) {
547
547
addTypeLocNominal(TL);
548
548
}
549
- while(!Unhandled.empty()) {
549
+ while (!Unhandled.empty()) {
550
550
NominalTypeDecl* Back = Unhandled.back();
551
551
Unhandled.pop_back();
552
552
for (ExtensionDecl *E : Back->getExtensions()) {
@@ -600,8 +600,8 @@ SynthesizedExtensionAnalyzer::~SynthesizedExtensionAnalyzer() {delete &Impl;}
600
600
601
601
bool SynthesizedExtensionAnalyzer::
602
602
isInSynthesizedExtension(const ValueDecl *VD) {
603
- if(auto Ext = dyn_cast_or_null<ExtensionDecl>(VD->getDeclContext()->
604
- getInnermostTypeContext())) {
603
+ if (auto Ext = dyn_cast_or_null<ExtensionDecl>(VD->getDeclContext()->
604
+ getInnermostTypeContext())) {
605
605
return Impl.InfoMap->count(Ext) != 0 &&
606
606
Impl.InfoMap->find(Ext)->second.IsSynthesized;
607
607
}
@@ -771,7 +771,7 @@ ValueDecl* ASTPrinter::findConformancesWithDocComment(ValueDecl *VD) {
771
771
assert(VD->getRawComment().isEmpty());
772
772
std::queue<ValueDecl*> AllConformances;
773
773
AllConformances.push(VD);
774
- while(!AllConformances.empty()) {
774
+ while (!AllConformances.empty()) {
775
775
auto *VD = AllConformances.front();
776
776
AllConformances.pop();
777
777
if (VD->getRawComment().isEmpty()) {
@@ -3689,7 +3689,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
3689
3689
}
3690
3690
3691
3691
void printFunctionExtInfo(AnyFunctionType::ExtInfo info) {
3692
- if(Options.SkipAttributes)
3692
+ if (Options.SkipAttributes)
3693
3693
return;
3694
3694
auto IsAttrExcluded = [&](DeclAttrKind Kind) {
3695
3695
return Options.ExcludeAttrList.end() != std::find(Options.ExcludeAttrList.
@@ -3732,7 +3732,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
3732
3732
}
3733
3733
3734
3734
void printFunctionExtInfo(SILFunctionType::ExtInfo info) {
3735
- if(Options.SkipAttributes)
3735
+ if (Options.SkipAttributes)
3736
3736
return;
3737
3737
3738
3738
if (Options.PrintFunctionRepresentationAttrs) {
0 commit comments