@@ -991,7 +991,7 @@ class PrintAST : public ASTVisitor<PrintAST> {
991
991
}
992
992
}
993
993
994
-
994
+
995
995
Printer.callPrintDeclPre (D, Options.BracketOptions );
996
996
997
997
bool haveFeatureChecks = Options.PrintCompatibilityFeatureChecks &&
@@ -2784,14 +2784,14 @@ static bool usesFeatureImplicitSelfCapture(Decl *decl) {
2784
2784
// / want a baseline version.
2785
2785
static std::vector<Feature> getFeaturesUsed (Decl *decl) {
2786
2786
std::vector<Feature> features;
2787
-
2787
+
2788
2788
// Go through each of the features, checking whether the declaration uses that
2789
2789
// feature. This also ensures that the resulting set is in sorted order.
2790
2790
#define LANGUAGE_FEATURE (FeatureName, SENumber, Description, Option ) \
2791
2791
if (usesFeature##FeatureName (decl)) \
2792
2792
features.push_back (Feature::FeatureName);
2793
2793
#include " swift/Basic/Features.def"
2794
-
2794
+
2795
2795
return features;
2796
2796
}
2797
2797
@@ -2852,7 +2852,7 @@ bool swift::printCompatibilityFeatureChecksPre(
2852
2852
if (features.empty ())
2853
2853
return false ;
2854
2854
2855
- printer.printNewline ();
2855
+ printer.printNewline ();
2856
2856
printer << " #if compiler(>=5.3) && " ;
2857
2857
llvm::interleave (features.begin (), features.end (),
2858
2858
[&](Feature feature) {
@@ -2977,7 +2977,7 @@ void PrintAST::visitPoundDiagnosticDecl(PoundDiagnosticDecl *PDD) {
2977
2977
if (PDD->isError ()) {
2978
2978
Printer << tok::pound_error;
2979
2979
} else {
2980
- Printer << tok::pound_warning;
2980
+ Printer << tok::pound_warning;
2981
2981
}
2982
2982
2983
2983
Printer << " (\" " << PDD->getMessage ()->getValue () << " \" )" ;
@@ -3609,7 +3609,7 @@ void PrintAST::visitFuncDecl(FuncDecl *decl) {
3609
3609
}
3610
3610
3611
3611
printBodyIfNecessary (decl);
3612
-
3612
+
3613
3613
// If the function has an opaque result type, print the opaque type decl.
3614
3614
if (auto opaqueResult = decl->getOpaqueResultTypeDecl ()) {
3615
3615
Printer.printNewline ();
@@ -4939,7 +4939,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
4939
4939
});
4940
4940
Printer << " >" ;
4941
4941
}
4942
-
4942
+
4943
4943
void visitGenericFunctionType (GenericFunctionType *T) {
4944
4944
Printer.callPrintStructurePre (PrintStructureKind::FunctionType);
4945
4945
SWIFT_DEFER {
@@ -5021,7 +5021,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
5021
5021
PrintAST::PrintRequirements);
5022
5022
Printer << " " ;
5023
5023
}
5024
-
5024
+
5025
5025
// If this is a substituted function type, then its generic signature is
5026
5026
// independent of the enclosing context, and defines the parameters active
5027
5027
// in the interface params and results. Unsubstituted types use the existing
@@ -5044,7 +5044,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
5044
5044
PrintAST::PrintRequirements);
5045
5045
sub->Printer << " " ;
5046
5046
}
5047
-
5047
+
5048
5048
// Capture list used here to ensure we don't print anything using `this`
5049
5049
// printer, but only the sub-Printer.
5050
5050
[T, sub, &subOptions] {
@@ -5226,7 +5226,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
5226
5226
Printer << " @opened(\" " << T->getOpenedExistentialID () << " \" ) " ;
5227
5227
visit (T->getOpenedExistentialType ());
5228
5228
}
5229
-
5229
+
5230
5230
void printArchetypeCommon (ArchetypeType *T,
5231
5231
const AbstractTypeParamDecl *Decl) {
5232
5232
if (Options.AlternativeTypeNames ) {
@@ -5251,11 +5251,11 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
5251
5251
visitParentType (T->getParent ());
5252
5252
printArchetypeCommon (T, T->getAssocType ());
5253
5253
}
5254
-
5254
+
5255
5255
void visitPrimaryArchetypeType (PrimaryArchetypeType *T) {
5256
5256
printArchetypeCommon (T, T->getInterfaceType ()->getDecl ());
5257
5257
}
5258
-
5258
+
5259
5259
void visitOpaqueTypeArchetypeType (OpaqueTypeArchetypeType *T) {
5260
5260
switch (Options.OpaqueReturnTypePrinting ) {
5261
5261
case PrintOptions::OpaqueReturnTypePrintingMode::WithOpaqueKeyword:
@@ -5272,14 +5272,14 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
5272
5272
// type.
5273
5273
Printer << " @_opaqueReturnTypeOf(" ;
5274
5274
OpaqueTypeDecl *decl = T->getDecl ();
5275
-
5275
+
5276
5276
Printer.printEscapedStringLiteral (
5277
5277
decl->getOpaqueReturnTypeIdentifier ().str ());
5278
-
5278
+
5279
5279
Printer << " , " << T->getInterfaceType ()
5280
5280
->castTo <GenericTypeParamType>()
5281
5281
->getIndex ();
5282
-
5282
+
5283
5283
// The identifier after the closing parenthesis is irrelevant and can be
5284
5284
// anything. It just needs to be there for the @_opaqueReturnTypeOf
5285
5285
// attribute to apply to, but the attribute alone references the opaque
@@ -5433,7 +5433,7 @@ void LayoutConstraintInfo::print(ASTPrinter &Printer,
5433
5433
break ;
5434
5434
}
5435
5435
}
5436
-
5436
+
5437
5437
void LayoutConstraint::dump () const {
5438
5438
if (!*this ) {
5439
5439
llvm::errs () << " (null)\n " ;
0 commit comments