@@ -1574,8 +1574,8 @@ static const Decl *relatedDeclForAvailabilityFixit(const Decl *D) {
1574
1574
}
1575
1575
1576
1576
// / 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.
1579
1579
static const Decl *ancestorMemberLevelDeclForAvailabilityFixit (const Decl *D) {
1580
1580
while (D) {
1581
1581
D = relatedDeclForAvailabilityFixit (D);
@@ -1877,7 +1877,8 @@ static void fixAvailability(SourceRange ReferenceRange,
1877
1877
}
1878
1878
1879
1879
if (FoundTypeLevelDecl) {
1880
- fixAvailabilityForDecl (ReferenceRange, FoundTypeLevelDecl, RequiredRange, TC);
1880
+ fixAvailabilityForDecl (ReferenceRange, FoundTypeLevelDecl, RequiredRange,
1881
+ TC);
1881
1882
}
1882
1883
}
1883
1884
@@ -1996,7 +1997,7 @@ static bool someEnclosingDeclMatches(SourceRange ReferenceRange,
1996
1997
1997
1998
Optional<ASTNode> FoundDeclarationNode =
1998
1999
findInnermostAncestor (ReferenceRange, Ctx.SourceMgr ,
1999
- const_cast <Decl *>(DeclToSearch), IsDeclaration);
2000
+ const_cast <Decl *>(DeclToSearch), IsDeclaration);
2000
2001
2001
2002
if (FoundDeclarationNode.hasValue ()) {
2002
2003
const Decl *D = FoundDeclarationNode.getValue ().get <Decl *>();
@@ -2050,7 +2051,7 @@ void TypeChecker::diagnoseDeprecated(SourceRange ReferenceRange,
2050
2051
// special-case diagnostics.
2051
2052
if (!getLangOpts ().EnableAvailabilityCheckingInImplicitFunctions &&
2052
2053
isInsideImplicitFunction (ReferenceRange, ReferenceDC)) {
2053
- return ;
2054
+ return ;
2054
2055
}
2055
2056
2056
2057
// We match the behavior of clang to not report deprecation warnigs
@@ -2064,13 +2065,14 @@ void TypeChecker::diagnoseDeprecated(SourceRange ReferenceRange,
2064
2065
clang::VersionTuple DeprecatedVersion = Attr->Deprecated .getValue ();
2065
2066
2066
2067
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 ());
2069
2070
return ;
2070
2071
}
2071
2072
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 ());
2074
2076
}
2075
2077
2076
2078
// checkForForbiddenPrefix is for testing purposes.
0 commit comments