Skip to content

Commit d5b3dcd

Browse files
committed
formatting followup
1 parent 10b49bc commit d5b3dcd

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

include/swift/AST/ASTContext.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,10 @@ class ASTContext final {
891891
/// Get the back-deployed availability for concurrency.
892892
AvailabilityContext getBackDeployedConcurrencyAvailability();
893893

894-
/// The the availability since when distributed actors are able to have custom executors.
895-
AvailabilityContext getConcurrencyDistributedActorWithCustomExecutorAvailability();
894+
/// The the availability since when distributed actors are able to have custom
895+
/// executors.
896+
AvailabilityContext
897+
getConcurrencyDistributedActorWithCustomExecutorAvailability();
896898

897899
/// Get the runtime availability of support for differentiation.
898900
AvailabilityContext getDifferentiationAvailability();

include/swift/AST/Availability.h

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ class VersionRange {
3939
// x.y.x: all versions greater than or equal to x.y.z
4040

4141
enum class ExtremalRange { Empty, All };
42-
42+
4343
// A version range is either an extremal value (Empty, All) or
4444
// a single version tuple value representing the lower end point x.y.z of a
4545
// range [x.y.z, +Inf).
4646
union {
4747
llvm::VersionTuple LowerEndpoint;
4848
ExtremalRange ExtremalValue;
4949
};
50-
50+
5151
unsigned HasLowerEndpoint : 1;
5252

5353
public:
@@ -86,7 +86,7 @@ class VersionRange {
8686
bool isContainedIn(const VersionRange &Other) const {
8787
if (isEmpty() || Other.isAll())
8888
return true;
89-
89+
9090
if (isAll() || Other.isEmpty())
9191
return false;
9292

@@ -326,17 +326,15 @@ class AvailabilityContext {
326326
OSVersion.unionWith(other.getOSVersion());
327327
}
328328

329-
bool isAvailableAsSPI() const {
330-
return SPI && *SPI;
331-
}
329+
bool isAvailableAsSPI() const { return SPI && *SPI; }
332330

333331
/// Returns a representation of this range as a string for debugging purposes.
334332
std::string getAsString() const {
335-
return "AvailabilityContext(" + OSVersion.getAsString() + (isAvailableAsSPI() ? ", spi" : "") + ")";
333+
return "AvailabilityContext(" + OSVersion.getAsString() +
334+
(isAvailableAsSPI() ? ", spi" : "") + ")";
336335
}
337336
};
338337

339-
340338
class AvailabilityInference {
341339
public:
342340
/// Returns the decl that should be considered the parent decl of the given
@@ -348,8 +346,8 @@ class AvailabilityInference {
348346
/// to ToDecl.
349347
static void
350348
applyInferredAvailableAttrs(Decl *ToDecl,
351-
ArrayRef<const Decl *> InferredFromDecls,
352-
ASTContext &Context);
349+
ArrayRef<const Decl *> InferredFromDecls,
350+
ASTContext &Context);
353351

354352
static AvailabilityContext inferForType(Type t);
355353

@@ -376,8 +374,7 @@ class AvailabilityInference {
376374
ASTContext &C);
377375

378376
static AvailabilityContext
379-
annotatedAvailableRangeForAttr(const SpecializeAttr* attr, ASTContext &ctx);
380-
377+
annotatedAvailableRangeForAttr(const SpecializeAttr *attr, ASTContext &ctx);
381378
};
382379

383380
} // end namespace swift

0 commit comments

Comments
 (0)