Merge pull request #35264 from DougGregor/concurrent-value-protocol

[Concurrency] Introduce "ConcurrentValue" protocol and checking.
This commit is contained in:
Doug Gregor
2021-02-05 10:28:26 -08:00
committed by GitHub
82 changed files with 1130 additions and 120 deletions

View File

@@ -1168,7 +1168,8 @@ public:
DeclAttribute::canAttributeAppearOnDeclKind(DeclAttrKind::DAK_Available,
D->getDeclKind()) &&
!D->getIntroducingVersion().hasOSAvailability() &&
!D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient)) {
!D->hasDeclAttribute(DeclAttrKind::DAK_AlwaysEmitIntoClient) &&
!D->hasDeclAttribute(DeclAttrKind::DAK_Marker)) {
D->emitDiag(D->getLoc(), diag::new_decl_without_intro);
}
}