@@ -39,15 +39,15 @@ class VersionRange {
39
39
// x.y.x: all versions greater than or equal to x.y.z
40
40
41
41
enum class ExtremalRange { Empty, All };
42
-
42
+
43
43
// A version range is either an extremal value (Empty, All) or
44
44
// a single version tuple value representing the lower end point x.y.z of a
45
45
// range [x.y.z, +Inf).
46
46
union {
47
47
llvm::VersionTuple LowerEndpoint;
48
48
ExtremalRange ExtremalValue;
49
49
};
50
-
50
+
51
51
unsigned HasLowerEndpoint : 1 ;
52
52
53
53
public:
@@ -86,7 +86,7 @@ class VersionRange {
86
86
bool isContainedIn (const VersionRange &Other) const {
87
87
if (isEmpty () || Other.isAll ())
88
88
return true ;
89
-
89
+
90
90
if (isAll () || Other.isEmpty ())
91
91
return false ;
92
92
@@ -326,17 +326,15 @@ class AvailabilityContext {
326
326
OSVersion.unionWith (other.getOSVersion ());
327
327
}
328
328
329
- bool isAvailableAsSPI () const {
330
- return SPI && *SPI;
331
- }
329
+ bool isAvailableAsSPI () const { return SPI && *SPI; }
332
330
333
331
// / Returns a representation of this range as a string for debugging purposes.
334
332
std::string getAsString () const {
335
- return " AvailabilityContext(" + OSVersion.getAsString () + (isAvailableAsSPI () ? " , spi" : " " ) + " )" ;
333
+ return " AvailabilityContext(" + OSVersion.getAsString () +
334
+ (isAvailableAsSPI () ? " , spi" : " " ) + " )" ;
336
335
}
337
336
};
338
337
339
-
340
338
class AvailabilityInference {
341
339
public:
342
340
// / Returns the decl that should be considered the parent decl of the given
@@ -348,8 +346,8 @@ class AvailabilityInference {
348
346
// / to ToDecl.
349
347
static void
350
348
applyInferredAvailableAttrs (Decl *ToDecl,
351
- ArrayRef<const Decl *> InferredFromDecls,
352
- ASTContext &Context);
349
+ ArrayRef<const Decl *> InferredFromDecls,
350
+ ASTContext &Context);
353
351
354
352
static AvailabilityContext inferForType (Type t);
355
353
@@ -376,8 +374,7 @@ class AvailabilityInference {
376
374
ASTContext &C);
377
375
378
376
static AvailabilityContext
379
- annotatedAvailableRangeForAttr (const SpecializeAttr* attr, ASTContext &ctx);
380
-
377
+ annotatedAvailableRangeForAttr (const SpecializeAttr *attr, ASTContext &ctx);
381
378
};
382
379
383
380
} // end namespace swift
0 commit comments