Suggest narrowing an exising availability context, when feasible.

This commit is contained in:
Graydon Hoare
2017-01-19 16:29:16 -08:00
parent 2c930a1ca8
commit d94b76f396
13 changed files with 310 additions and 31 deletions

View File

@@ -2308,7 +2308,9 @@ Decl *ModuleFile::getDecl(DeclID DID, Optional<DeclContext *> ForcedContext) {
Attr = new (ctx) AvailableAttr(
SourceLoc(), SourceRange(),
(PlatformKind)platform, message, rename,
Introduced, Deprecated, Obsoleted,
Introduced, SourceRange(),
Deprecated, SourceRange(),
Obsoleted, SourceRange(),
platformAgnostic, isImplicit);
break;