Skip to content

Commit d61dd21

Browse files
committed
Fix 80-column and indentation violations. NFC.
Swift SVN r27184
1 parent 32dbd0c commit d61dd21

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lib/Sema/TypeChecker.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,8 @@ static const Decl *relatedDeclForAvailabilityFixit(const Decl *D) {
15741574
}
15751575

15761576
/// Walk the DeclContext hierarchy starting from D to find a declaration
1577-
/// at the member level (i.e., declared in a type context) on which to provide an
1578-
/// @availability() Fix-It.
1577+
/// at the member level (i.e., declared in a type context) on which to provide
1578+
/// an @availability() Fix-It.
15791579
static const Decl *ancestorMemberLevelDeclForAvailabilityFixit(const Decl *D) {
15801580
while (D) {
15811581
D = relatedDeclForAvailabilityFixit(D);
@@ -1877,7 +1877,8 @@ static void fixAvailability(SourceRange ReferenceRange,
18771877
}
18781878

18791879
if (FoundTypeLevelDecl) {
1880-
fixAvailabilityForDecl(ReferenceRange, FoundTypeLevelDecl, RequiredRange, TC);
1880+
fixAvailabilityForDecl(ReferenceRange, FoundTypeLevelDecl, RequiredRange,
1881+
TC);
18811882
}
18821883
}
18831884

@@ -1996,7 +1997,7 @@ static bool someEnclosingDeclMatches(SourceRange ReferenceRange,
19961997

19971998
Optional<ASTNode> FoundDeclarationNode =
19981999
findInnermostAncestor(ReferenceRange, Ctx.SourceMgr,
1999-
const_cast<Decl *>(DeclToSearch), IsDeclaration);
2000+
const_cast<Decl *>(DeclToSearch), IsDeclaration);
20002001

20012002
if (FoundDeclarationNode.hasValue()) {
20022003
const Decl *D = FoundDeclarationNode.getValue().get<Decl *>();
@@ -2050,7 +2051,7 @@ void TypeChecker::diagnoseDeprecated(SourceRange ReferenceRange,
20502051
// special-case diagnostics.
20512052
if (!getLangOpts().EnableAvailabilityCheckingInImplicitFunctions &&
20522053
isInsideImplicitFunction(ReferenceRange, ReferenceDC)) {
2053-
return;
2054+
return;
20542055
}
20552056

20562057
// We match the behavior of clang to not report deprecation warnigs
@@ -2064,13 +2065,14 @@ void TypeChecker::diagnoseDeprecated(SourceRange ReferenceRange,
20642065
clang::VersionTuple DeprecatedVersion = Attr->Deprecated.getValue();
20652066

20662067
if (Attr->Message.empty()) {
2067-
diagnose(ReferenceRange.Start, diag::availability_deprecated, Name, Platform,
2068-
DeprecatedVersion).highlight(Attr->getRange());
2068+
diagnose(ReferenceRange.Start, diag::availability_deprecated, Name,
2069+
Platform, DeprecatedVersion).highlight(Attr->getRange());
20692070
return;
20702071
}
20712072

2072-
diagnose(ReferenceRange.Start, diag::availability_deprecated_msg, Name, Platform,
2073-
DeprecatedVersion, Attr->Message).highlight(Attr->getRange());
2073+
diagnose(ReferenceRange.Start, diag::availability_deprecated_msg, Name,
2074+
Platform, DeprecatedVersion,
2075+
Attr->Message).highlight(Attr->getRange());
20742076
}
20752077

20762078
// checkForForbiddenPrefix is for testing purposes.

0 commit comments

Comments
 (0)